title: Jquery - Submit all forms by one button
body: <p>Html:</p>
  
  <pre><code>&lt;form class="allforms" method="POST" action="/auth/myaccount/personal"&gt;
    &lt;input type="hidden" name="_method" value="PATCH"&gt;
  ...
  &lt;/form&gt;
  
  &lt;button id="allsubmit" class="btn btn-info"&gt;Continue&lt;/button&gt;
  </code></pre>
  
  <p>jquery:</p>
  
  <pre><code>$(document).ready(function(){
  $("#allsubmit").click(function(){
          $('.allforms').submit();
      }); 
  });
  </code></pre>
  
  <p>I have 3 forms in my html code like above.
  My button is out of any my forms.
  How to have one submit button for all my forms. I tried the click function but it doesn't work. Why?</p>