Answers for "vanilla js remove attribute"

6

remove attribute javascript

document.getElementsByTagName("H1")[0].removeAttribute("class");
Posted by: Guest on June-19-2020
0

delete attribute javascript

var target = document.getElementById("p12");
target.removeAttribute("class");
Posted by: Guest on May-29-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language