KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I created a somefile.js where somefile.js contains some jQuery method. So for instance it contains this function: function showWindow(divID) { var dialogDiv = $(divID); dialogDiv.dialog ( { bgiframe: true, modal: true, autoOpen: false, show: 'blind' } ) dialogDiv.dialog("open"); } So in my .aspx page (or whatever, it could be an .html), I have a button: <input type="button" onclick="showPopUp('testDiv')" value="Click Me!" /> My question is, we're going to use showPopUp all over in our app. If it's called from an onClick event, then where do I put my $(document).ready(function() since this code is not in the page, but in a .js file?
Tags (comma-separated)
Save Edits
Cancel