How can I get name property of HTML element with jQuery?
To read a property of an object you use .propertyName or ["propertyName"] notation.
This is no different for elements.
var name = $('#item')[0].name;
var name = $('#item')[0]["name"];
If you specifically want to use jQuery methods, then you'd use the .prop() method.
var name = $('#item').prop('name');
Please note that attributes and properties are not necessarily the same.