remove attribute style jquery code example
Example 1: remove attribute jquery
$("button").click(() => {
$("div").removeAttr("id"); // <div id='12' class='nice'></div> --> <div class='nice'></div>
});
Example 2: jquery remove css style
//removing css with jQuery. i.e: set to default
$( "#myElementID" ).css("background-color", "");//just blank it out
Example 3: remove an attribute from style tag using jquery
$("abc").css({"<PROPERTY>": ""});
Example 4: remove attribute jquery
$('p').attr('style','');