how to remove attribute in javascript code example
Example 1: remove attribute javascript
document.getElementsByTagName("H1")[0].removeAttribute("class");
Example 2: delete attribute javascript
var target = document.getElementById("p12");
target.removeAttribute("class");
Example 3: remove attribute jquery
$('p').attr('style','');