Jquery multi submit event - Javascript jQuery

Javascript examples for jQuery:Form Submit

Description

Jquery multi submit event

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){//from ww w.  ja v a  2s  . c o m
$('form').submit(function(e){
    e.stopImmediatePropagation();
    return false;
});
$('form').submit(function(){
    console.log('hi');
});
    });

      </script> 
 </head> 
 <body> 
  <form> 
   <input type="submit" value="submit"> 
  </form>  
 </body>
</html>

Related Tutorials