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