Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete parent js

parentElemnet.appendChild(childElemnet);
childElemnet.appendChild(buttonRemoveElement)
buttonRemoveElement.onclick = () => {perentElement.remove(childElement)}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #parent #js
ADD COMMENT
Topic
Name
4+1 =