title: make hidden input field considered 'valid'
body: <p>Why is a hidden input not considerd 'valid' by the jquery selector and what can I do about that (i.e. to make it valid).</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-js lang-js prettyprint-override"><code>console.log($("#a").is(":valid")); // true
  console.log($("#b").is(":valid")); // false</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input id="a" type="text" value="abc"&gt;
  &lt;input id="b" type="hidden" value="def"&gt;</code></pre>
  </div>
  </div>
  </p>