how to get an attribute value in jquery from a button code example
Example 1: get attribute value jquery
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
Example 2: jquery set att
$input.attr("attributeName", "attributeValue");