Okay, here's the problem. I have a jqGrid dialog that only generates in the HTML after you click the "add records" button.
I attached a "Click" event handler to a button in that dialog to open a pop-up when clicked (this is done after document ready), but it's not working because when the page loads, the event handler is processed by IE and it sees that the dialog doesn't exist at the moment and deletes or voids the currently invalid handler.
How do you attach a JavaScript event handler to that dialog (or any element for that matter) to perform a function when it doesn't exist when the page is loaded?