title: submit form when action="javascript:void(0)
body: <p>I have html step form I need to submit the form after the form passes validation and all fields are filled.I have a action controller register.php but in my html form I also have action="javascript:void(0);" so how to i submit my form action.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="form-bottom"&gt;
    &lt;div class="row"&gt;
      &lt;div class="form-group col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12"&gt;
        &lt;input type="text" class="form-control" placeholder="addres 1" id="add1" name="" value="" |&gt;
      &lt;/div&gt;
      &lt;div class="form-group col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12"&gt;
        &lt;input type="text" class="form-control" placeholder="address 2" id="add2" name="" value=""&gt;
      &lt;/div&gt;
      &lt;div class="form-group col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12"&gt;
        &lt;input type="text" class="form-control" placeholder="city" id="city" name="" value="" |&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="row"&gt;
      &lt;div class="form-group col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12"&gt;
        &lt;input type="text" class="form-control" placeholder="Home Phone" id="contact_number" name="" value=""&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="form-group col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12"&gt;
      &lt;input type="checkbox" name="vehicle" value="Car" checked&gt; I Agree&lt;br&gt;
    &lt;/div&gt;
    &lt;button type="button" class="btn btn-previous"&gt;Previous&lt;/button&gt;
    &lt;button type="submit" class="btn"&gt;Submit&lt;/button&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>