title: jQuery Selecting the first child with a specific attribute
body: <p>I have a form in HTML with multiple inputs of type submit:</p>
  
  <pre><code>&lt;form id = "myForm1" action="doSomethingImportant/10" class="postLink" method="post"&gt;
  &lt;input type="hidden" id="antiCSRF" name="antiCSRF" value="12345"&gt;&lt;/input&gt;
  &lt;input type="submit" value="clickThisLink"&gt;&lt;/input&gt;
  &lt;input type="submit" value="Don'tclickThisLink"&gt;&lt;/input&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What I want to do is select only the first input with type submit while ignoring the others, the snippet of code I currently have is as follows, note it is within a for-each loop that goes through all forms on my page, hence (this) to avoid confusion:</p>
  
  <pre><code>var name = $(this).find("input[type='submit']").val();
  </code></pre>
  
  <p>I'm thinking this already grabs the first input of type submit by default, I'm not sure if that assumption is correct or if there's a more formal way of going about it, thanks.</p>