This should do it:
$('form').each(function(){
 this.onsubmit = function(){
  // do stuff
 }
};

On Jan 31, 12:07 pm, the_woodsman <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm using Jquery to override form submits, i.e:
>
> var tabsForms=$('#'+el.id+' form');
> tabsForms.submit(function(){    ...
>
> Pressing submit works fine with this approach, but there's existing
> code in the form inputs, such as onclick=this.form.submit.
>
> When the form is submitted this way, it seems that the submit() event
> I created via JQuery is ignored, and the form submits normally.
>
> I can't change the zillion examples of this in my existing pages - so
> how can I make this.form.submit() submit just like pressing the submit
> button now does?
>
> Thanks in advance!

Reply via email to