get attribute of button in jquery button click code example
Example 1: jquery add attribute
$('#someid').attr('name', 'value');
Example 2: jquery set att
$input.attr("attributeName", "attributeValue");
$('#someid').attr('name', 'value');
$input.attr("attributeName", "attributeValue");