title: How do I get all text boxes within a given div based on its class name?
body: <p>This is really slowing down my progress this morning. Any help would be incredible. Here's my code that I'm using to try to get each text box:</p>
  
  <pre><code>$('.contactInfo input[type="text"]').each(function () { 
  
  });
  </code></pre>
  
  <p>The above code works but it keeps grabbing select boxes as well. I've tried using a colon in between the class name and input type identifier as well as a number of other ways to get each text box (:input, :text, type=text, etc.). Forgive my styling on here as I'm completely new to asking questions and haven't gotten the hang of the formatting.<br/><br/>
  <b>Note: <code>.contactInfo</code> is a class assigned to the div that contains the text boxes I want to get. Also, I'm using the chosen jquery plugin to style my select boxes as well. This may or may not have anything to do with my issue, just wanted to let you all know.</b><br/><br/>Thanks in advance for anything you guys can help me with!<br/><br/>
  <b>Update: I've tried every solution listed here. Each one grabs the select box, however, it doesn't return its id. So, I'm just using a workaround that checks if its id is null so that I can skip it during the iterations. I really appreciate each of you for your input! Thanks!</b></p>