$(function() { $('#<%=btnAdd.ClientID%>').click( { code }); });
The above jquery code I have written inside the aspx code and it works fine. But when I tried to externalize the code by creating one js file and transferring the internal code to that file it does not work. I mean when I write the same code in an external file and add that to aspx page it does not work.Can any one help me to solve the problem ?