jquery - SimpleModal Confirm fails to submit form -


I am trying to confirm jQuery to show yes / no confirmation when I submit a form.

I had modified (in the last list) to capture and block form submissions.

However, it only works with jQuery 1.2.6, a recent upgrade stops 1.3.2, if yes is clicked, then by submitting the form.

But I can not understand what is wrong / inconsistent in my code now. Demo (which works in both versions of a simple window.href implementation).

  $ (document) .ready (function () {$ ('input.delete'). Click (function (e) {e.preventDefault (); var target = $ (e .target); Confirm ("Really delete this event?", Function () {target.click ()});});});  

How about something like this? The idea of ​​catching clicks (and fire!) On the submitted event is not click event.

  $ (document) .ready (function () {$ ('# myForm'). Submit (function () {var f = this; Confirm (" Remove? ", Function () {$ (f). Submit ();}) Return; Return the initial session;}}}};  

Hope That this is some helpful, good luck!


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -