How can I get name property of HTML element with jQuery?
The method .attr() allows getting attribute value of the first element in a jQuery object:
$('#myelement').attr('name');