To read or change element attributes use the attr() function. removeAttr can be used to remove attributes. No duh, uha?
attr(): get the value of an attributeattr(name, val): set the name attribute to the valattr({ name: val...}): set multi attributes in one callremoveAttr(name): remove the attribute from the element