title: Javascript / Jquery search behavior
body: <p>Trying to figure out the proper syntax to access a variable in a loop</p>
  
  <p>To start with an object/array is populated with this</p>
  
  <pre><code>var curInputs = curStep.find("input[type='text'],input[type='url']");
  </code></pre>
  
  <p>I get a list populated fine with the inputs that I'm looking for.
  When I enter this code to reference a specific index I type</p>
  
  <pre><code>console.log(curInputs[0]);
  </code></pre>
  
  <p>and I get this, which is expected</p>
  
  <pre><code>&lt;input type="text" class="myclass" id="myID"&gt;
  </code></pre>
  
  <p>Where I am stuck is what if I want to go further and do something like this?</p>
  
  <pre><code>console.log(curInputs[0].attr('class'));
  </code></pre>
  
  <p>It tells me curInputs[0].attr is not a function. Im expecting to see "myClass". How can I do the equivalent thing correctly?</p>