How to get the attribute name value of a input tag using jQuery. Please help.
<input name="xxxxx" value="1">
Give your input an ID and use the attr method:
attr
var name = $("#id").attr("name");
2.1m questions
2.1m answers
60 comments
57.0k users