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");
1.4m articles
1.4m replys
5 comments
57.0k users