title: jquery can't get the value from an input element
body: <p>I am using jquery trying to retrieve the value of a text input but it is not working.  can anyone see what I am doing wrong? <a href="http://jsfiddle.net/silvajeff/rJNLr/" rel="nofollow noreferrer">http://jsfiddle.net/silvajeff/rJNLr/</a></p>
  
  <pre><code>&lt;input id="mytest2" value="123"/&gt;
  &lt;button id="findRow"&gt;Find Row&lt;/button&gt;
  
  $("#findRow").click(function() {   
    var theVal = $("#myTest2").val();
    alert(theVal);
  });
  </code></pre>
  
  <p>I apologize to everyone, but what I initially posted was just a typo when I was breaking the question down to simplify it.  I will have to repost again, only this time I'll put the unsimplified code <a href="https://stackoverflow.com/questions/14333135/jquery-cant-get-the-value-from-an-input-element-2">here</a>.  I'll leave this question here though and add a tag for case-sensitive because I still think these were valuable solutions to others who may potentially have issues.</p>