jquery attribute value code example
Example 1: get attribute value jquery href
var href = $(this).attr('href');
Example 2: jquery add attribute
$('#someid').attr('name', 'value');
Example 3: get attribute value jquery
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );