You can do this by using the name attribute selector:
$("input[name=nameGoesHere]").val();
Liked By
Write Answer
How to get a value of an element by name instead of ID
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
20-Mar-2018Hi, Ramesh
You can do this by using the name attribute selector:
$("input[name=nameGoesHere]").val();