Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,

I am calling a method onClick of javascript.
Its give me error
Uncaught ReferenceError: setModalPopup is not defined

i have a function as follows:
PHP
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 });
        }


XML
<button id="showButton" onclick="setModalPopup('empId');">
       Show</button>


Anyone can help me .
Kindly revert
Thanks in Advance
Harshal.
Posted
Comments
R Harshal 24-Jul-14 10:40am    
Kindly revert .please
R Harshal 24-Jul-14 10:54am    
HEllo Team .
Please guide me .Why i am getting the error .Please Team

Thanks in advance
Harshal

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900