How to get the attribute name value of a input tag using jQuery. Please help.
Use the attr method of jQuery like this:
alert($('input').attr('name'));
Note that you can also use attr to set the attribute values by specifying second argument:
attr
$('input').attr('name', 'new_name')