remove attribute and add attribute html button code example
Example 1: remove attribute javascript
document.getElementsByTagName("H1")[0].removeAttribute("class");
Example 2: remove attribute jquery
$('p').attr('style','');
document.getElementsByTagName("H1")[0].removeAttribute("class");
$('p').attr('style','');