Let oldChild = document.querySelector("#child") Let parent = document.querySelector("#parent") * Another way is by removing child add adding another child using createElement ![]() innerHTML of a parent elementÄocument.querySelector("#parent").innerHTML = `` ![]() * First way we can replace one element with another is by changing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |