title: All-inclusive selector for button (as an alternative to :button)
body: <p>I am trying to select ALL buttons in a form, which includes the <code>reset</code> and <code>submit</code> elements.  My current selector is this:</p>
  
  <p><code>:button, [type=\"submit\"], [type=\"reset\"]</code></p>
  
  <p>However, it is not working with <code>reset</code>.</p>
  
  <p>Here is my code:</p>
  
  <p>HTML:</p>
  
  <pre><code>        &lt;form&gt;
  
          &lt;input type="text" /&gt;
          &lt;input type="text" /&gt;
          &lt;input type="text" /&gt;
          &lt;select&gt;
              &lt;option&gt;hello&lt;/option&gt;
              &lt;option&gt;hi
              &lt;/option&gt;
              &lt;option&gt;&lt;/option&gt;
          &lt;/select&gt;
          &lt;textarea&gt;&lt;/textarea&gt;
          &lt;input type="checkbox" name="hi" value="hi" /&gt;
          &lt;input type="radio" name="test" value="hi" /&gt;
          &lt;input type="radio" name="test" value="hello" /&gt;
          &lt;input type="radio" name="test" /&gt;
          &lt;input type="button" /&gt;
          &lt;button&gt;&lt;/button&gt;
          &lt;input type="reset" /&gt;
          &lt;input type="submit" /&gt;
  
      &lt;/form&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>$(document).ready(function() {
  
  $("form").submit(function() {
  
      var shouldSubmit = true;
  
      $(this).children(":input:not(:button, [type=\"submit\"], [type=\"reset\"])").each(function() {
  
          if ($(this).val() == "")
          {
              shouldSubmit = false;
              return shouldSubmit;
          }
  
      });
  
      if ($("input:checkbox").length &gt; 0)
      {
          if ($("input:checkbox:checked").length == 0)
              shouldSubmit = false;
      }
  
      if ($("input:radio").length &gt; 0)
      {
          if ($("input:radio:checked").length == 0)
              shouldSubmit = false;
      }
  
      if (shouldSubmit == false)
          alert("All form fields must be filled out.");
  
      return shouldSubmit;
  
  });
  
  });
  </code></pre>