$.attr code example
Example 1: get attribute value jquery
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
Example 2: jquery get name attribute
$( "input[name='Hot Fuzz']" );
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
$( "input[name='Hot Fuzz']" );