.removeAttribute()
void Element.removeAttribute(String name)
Removes an attribute from an element.
element.removeAttribute(name);
Removes the attribute name from element.
Example
HTML:
<input type="checkbox">
JavaScript:
document.query("input").removeAttribute("type");
Resulting HTML:
<input>