jquery delete attribute 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 elemtns
.remove("#elemnt_id .elemnt_class");
Example 3: remove attribute jquery
$('p').attr('style','');