how can I catch all onsubmit event

164 Views Asked by At

I use this method to catch all form submit

$(function(){
   $("form").submit(function(){
       do somthing
   });
});

but,I can't catch this kind of submit

document.forms['form1'].submit();

why?

0

There are 0 best solutions below