Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove div by class name javascript

const remove = (sel) => document.querySelectorAll(sel).forEach(el => el.remove());

// Use like:
remove(".remove");
remove("#remove-me");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #div #class #javascript
ADD COMMENT
Topic
Name
9+7 =