I want to get value of element by using its name .I have done by using id $('#id').val();
How to get a value of an element by name instead of ID Anonymous User 1529 20 Mar 2018 I want to get value of element by using its name .I have done by using id $('#id').val();
Hi, Ramesh
You can do this by using the name attribute selector:
$("input[name=nameGoesHere]").val();