jquery attr value get

JavaScript
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
Source

Also in JavaScript: