title: Is it possible to ignore HTML5 validation a specific button?
body: <p>Similar to the following question (<em>note the following question is related to symfony 2.3 - I don't know what that is, I'm just using HTML</em>) :</p>
  
  <p><a href="https://stackoverflow.com/questions/17068778/how-to-disable-html5-validation-for-specific-buttons-in-symfony-2-3">How to disable html5-validation for specific buttons in symfony 2.3</a></p>
  
  <p>Is it possible to bypass HTML5 validation (<code>required</code>) for a specific button in HTML?</p>
  
  <pre><code>&lt;form name="loginform" autocomplete="off" id="loginform" action="" method="post"&gt;
              &lt;nav class="clearfix"&gt;
                  &lt;ul class="clearfix"&gt;
                      &lt;li&gt;&lt;input class="username" type="text" id="username" required placeholder="Username"&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;input class="password" type="password" id="password" required placeholder="Password"&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;button name="register" class="register"&gt;Register&lt;/button&gt;
                      &lt;button name="login" class="login"&gt;Log in&lt;/button&gt;&lt;/li&gt;
                  &lt;/ul&gt;
                  &lt;a href="#" id="pull"&gt;Menu&lt;/a&gt;
              &lt;/nav&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>I don't need validation if <strong>register</strong> button is clicked.</p>
  
  <pre><code>if(isset($_POST['register'])) {
      header("Location: register.php");
  }
  </code></pre>
  
  <p>Edit: A way of doing this without changing the structure of the form or changing the button :).</p>