Absolute noob question.
I have a form
<form>
<input type="text" id="cars" name="cars"/>
</form>
When the user clicks on a link , my jquery function needs to pick up the current value of this input field.
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.
Any suggestions?