title: Laravel submit button
body: <p>I have two subscribe forms, one in the main page, other in the footer. They both have the same callback function but the one in the footer doesn't trigger the script.</p>
  
  <pre><code>&lt;footer id="main-footer"&gt;
      ...
      &lt;form method="post" action="/subscribe" id="subscribe-form-footer"&gt;
          ...
          &lt;button type="button" class="btn btn-default g-recaptcha" data-sitekey="-------" data-callback='onSubmitFooter'&gt;{{trans('content.input_submit')}}&lt;/button&gt;
  
      &lt;/form&gt;
  &lt;/footer&gt;
  </code></pre>
  
  <p>I tried placing the script in the head of the document, inside footer tags, at the end of footer tags, but it just isn't triggering it. Here is the script:</p>
  
  <pre><code>&lt;script&gt;
      function onSubmitFooter(token) {
          document.getElementById("subscribe-form-footer").submit();
      }
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Even though thanks to <a href="https://stackoverflow.com/users/787669/prasad">Prasad</a> I corrected the ID, the problem still persists wherever I put the script.</p>