How to get a value of an element by name instead of ID

Use the name attribute selector:

$("input[name=nameGoesHere]").val();

Leave a Comment