title: How can I disable submit button after required html5 return true on the javascript?
body: <p>My html code like this :</p>
  
  <pre><code>&lt;form&gt;
      &lt;label for="name"&gt;* Name&lt;/label&gt;
      &lt;input type="text" id="name" required&gt;&lt;br&gt;
      &lt;label for="name"&gt;* Address&lt;/label&gt;
      &lt;input type="text" id="address" required&gt;&lt;br&gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I'm using <code>required</code> HTML5 attribute to validate fields.</p>
  
  <p>If user does not input text, it will display HTML5 error.</p>
  
  <p>I want to disable the submit button if any of the required fields are left empty.</p>
  
  <p>How can I do it?</p>