I have a jqueryui tab on a page, when clicking on the "tabs" link, different The problem I have is a However, if the user starts to submit the form but does not complete, and tries to click on any other tab, then I should have a popup such as "On the page , "Leave page" . In the DOM, I believe a My jqueryui tabs code: My html structure: navigation: I think you use something like this incident to get it can do. & lt; Section & gt; / Code> Elements around my page, in other words, all my content is on a page (a file).
& lt; Section & gt; If you do one of the or "tabs", then I have to make sure that any user submits all fields / forms before leaving this field, it is a Multi-Part Multi -Age Request Request . In this way, if the user has filled up everything, then it is okay. He could leave later.
onunload hook that I can use , But I do not know how to do this in jqueryui tabs . Any hook which I could use with the plugin
$ (function () {$ ("#tabs") .tabs ();})
Lt; li & gt; & lt; a href = "# tab-1" & gt; first & lt; / a & gt; & lt; / li & gt;
$ (function () {$ ("# tabs"). Tabs ({First Activate: Function (e, UI) {if (ui.oldTab.attr ('id') == 'Tab-1') {If (Confirm ('do you want to leave?')) {Return false}}}});});
No comments:
Post a Comment