I created somefile.js file where somefile.js contains some jQuery method. So, for example, it contains this function:
function showWindow(divID) { var dialogDiv = $(divID); dialogDiv.dialog ( { bgiframe: true, modal: true, autoOpen: false, show: 'blind' } ) dialogDiv.dialog("open"); }
So on my .aspx page (or something else, it could be .html), I have a button:
<input type="button" onclick="showPopUp('testDiv')" value="Click Me!" />
My question is: we are going to use showPopUp in our application. If it is called from the onClick event, then where do I put my $ (document) .ready (function (), since this code is not on the page, but in the .js file?
jquery
Positiveguy
source share