rewrite attr jquery code example
Example 1: jQuery change href value
$("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");
Example 2: get attribute value jquery
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );