Preventing one form submission, and submitting another - is this approach reliable?

Your code should work across all browsers, but if you want to be absolutely sure you could do.

Your code should work across all browsers, but if you want to be absolutely sure you could do $("#form1"). Submit(function(evt) { evt.preventDefault(); // cancel the default behavior $("#form2").submit(); return false; }); Using the .preventDefault() method ensures that you cancel the default behavior before doing something that might interfere with it..

Return false causes jQuery to do the .preventDefault() part. – elusive Nov 16 '10 at 11:36 1 @elusive, I know. But the OP is worried if the submit that happens before the return false, could somehow interfere with that.It can not, but I just point to an alternative that puts that worry at ease (i hope) – Gaby aka G.

Petrioli Nov 16 '10 at 11:39.

Your original approach should work everywhere.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions