add attr html jquery code example
Example 1: add readonly attribute jquery
$(input).attr('readonly', true);
Example 2: get attribute value jquery
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
Example 3: jquery set att
$input.attr("attributeName", "attributeValue");