remove attribute html tag 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: remove attribute jquery
$('p').attr('style','');