title: Bypass HTML "required" attribute when submitting
body: <p>I use <code>required</code> for a 1st check before submitting a form.</p>
  
  <pre><code>&lt;form action="myform.php"&gt;
    Foo: &lt;input type="text" name="someField" required="required"&gt;
    &lt;input type="submit" value="submit"&gt;
    &lt;input type="submit" value="ignore"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Problem is, that I have an "ignore" button, which submits the form as well and the backend logic then sets a correct state in a DB. In this case (ignore) the validation is not desired (because there is no need to fill in field "Foo").</p>
  
  <p>What's the best way to handle the 2 scenarios?</p>
  
  <ol>
  <li>I am aware that I could give up "required" and do the validation somewhere else (backend / JavaScript). I am looking for a way to keep the "required".</li>
  <li>I could use some Js <code>onclick</code> for the ignore button scenario and remove the attribute just before sending the form ( <a href="https://stackoverflow.com/a/13951500/356726">https://stackoverflow.com/a/13951500/356726</a> ).</li>
  </ol>
  
  <p>But actually I am looking for something smarter ....</p>
  
  <p>--- Edit ---</p>
  
  <p>Yes, duplicate of <a href="https://stackoverflow.com/questions/3004703/required-attribute-html5">Required attribute HTML5</a></p>