JQuery: Get Input Value From Form Field

March 28th, 2009 by jeremychone
<input type="text" name="companyId" value="123" />

Get the value of the companyId with:

$("input[name='companyId']").attr("value"); //will return '123'

Leave a Reply