title: Jquery multi submit event
body: <p>I coded, global mini form validation for jquery. This here;
  This code, All form submit event listener.</p>
  
  <pre><code>$('form').submit(function() {
         var returnfalse = 'true';
          var min;
          var maxlength;
  
          $('input[type=text], input[type=password]', this).removeClass('error');
  
          jQuery.each( $('input[type=text], input[type=password]', this) , function() {
  
  
              min = $(this).attr('min');
              maxlength = $(this).attr('maxlength');
              inputValue = $(this).val().trim();
  
  
  
              if( $(this).attr('min') != '' &amp;&amp; $(this).attr('min') != null &amp;&amp; inputValue.length &lt; min ) {
                  alert('ERROR !!!!!')
                  $(this).addClass('error');
                  $(this).focus();
                  returnfalse = 'false';
              }
  
  
  
              if(returnfalse != 'true')
                  return false;
  
  
          });
  
          if(returnfalse != 'true')
              return false;
  
      });
  </code></pre>
  
  <p>And other submit event;</p>
  
  <pre><code>$('#registerForm').submit(function(){
     alert('this Work...');
  });
  </code></pre>
  
  <p>These two events works when  i <code>#registerForm</code> submit. But i write return false above event.</p>
  
  <p>Why is it works the second event ?</p>