Retrieving the Value of an input text field in Jquery
<p>Absolute noob question.</p>

<p>I have a form</p>

<pre><code>&lt;form&gt;
  &lt;input type="text" id="cars" name="cars"/&gt;
&lt;/form&gt;
</code></pre>

<p>When the user clicks on a link , my jquery function needs to pick up the current value of this input field. </p>

<p>How do I retrieve this value? Doing a $("#cars").val gives me a block of html and not the string typed in by the user, Also $("cars").text throws a null value.</p>

<p>Any suggestions?</p>
