function setModalPopup(empId) { debugger; var tempData = $.grep(data, function (item) { return item.empId == empId })[0]; var $TempDataStatus = $("<div></div>"); $TempDataStatus = $("#dataTemplate").tmpl({ context: this, data: tempData }); }
<button id="showButton" onclick="setModalPopup('empId');"> Show</button>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)