Published
- 1 min read
remove attribute jquery
The solution for this is noted below
remove attribute jquery
Solution
$("button").click(() => {
$("div").removeAttr("id"); // <div id='12' class='nice'></div> --> <div class='nice'></div>
});
Try other methods by searching on the site. That is if this doesn’t work