I'd like to run a jQuery function BEFORE an update panel is fired for refreshing. As this refresh can be done with any of many buttons and other ways, I was hoping to use the submit handler or something like that, but it did not work.
I tried this to attach the event to the main form:
jQuery('form').submit(function () { alert('submit!'); });
and also this to attach to the update panel
jQuery('#pnlContent').submit(function () { alert('submit!'); });
Anyone knows how to do this?
UpdatePanelform isn't "submitted" in the normal sense. It is "submitted" via ajax so those event will not fire.