remove html attribute javascript code example
Example 1: remove attribute javascript
document.getElementsByTagName("H1")[0].removeAttribute("class");
Example 2: html how to remove attribute#
element.removeAttribute(attributename)
Example 3: jquery remove css style
//removing css with jQuery. i.e: set to default
$( "#myElementID" ).css("background-color", "");//just blank it out
Example 4: remove css jquery
$("#id").css({ 'background-color' : '', 'opacity' : '' });
$(".class").css({ 'background-color' : '', 'opacity' : '' });
//You can remove css by the above.