logo
Search
showing results for - "what is the proper way to empty div tag 3f"
Lisa
17 Aug 2018
1const div = document.querySelector('#my-div');
2[].slice.call(div.children).forEach(child => div.removeChild(child))
3
source
similar questions
jquery if empty remove divhow to empty an element in javascriptjavascript clear divclear a divjavascript set target blankrelode divjs detect if content editable div is emptyhow to make div visible and invisible in javascriptempty div react
queries leading to this page
what does an empty div do in htmlit is good to use empty div in htmlempty div elementhow to make empty div in htmlwhat is the proper way to empty div tag 3fhow to represent empty div on pagecss empty divempty div sizewhat is the proper way to empty div tag 3f
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue