Answers for "how to remove attribute in javascript object"

6

remove attribute javascript

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

javascript remove property from object

var person = {"first_name": "Billy","last_name": "Johnson"};
delete person.last_name; //delete last_name property
Posted by: Guest on July-19-2019

Code answers related to "how to remove attribute in javascript object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language