title: TypeError: .val is not a function
body: <p>I have the following code, where I am selecting all matching elements that start with the same name, excluding one I do not want included in the group.</p>
  
  <pre><code>var myInputBoxes= $('input[id ^= "SubjectText"]').not('#SubjectTextNew');
  for (i = 0 ; i &lt; myInputBoxes.length; i++){
      var SubjectId = myInputBoxes[i].id.replace('SubjectText', '');
      var Subject = myInputBoxes[i].val();
  }
  </code></pre>
  
  <p>This gives me the following error in firefox</p>
  
  <blockquote>
    <p>TypeError: myInputBoxes[i].val is not a function</p>
  </blockquote>
  
  <p>Why would it fail on the val function?</p>