jquery remove all child elements

Use the removeChild() Method to Remove All Child Elements in JavaScript Use the remove() Function to Remove All Child Elements in JavaScript Use the replaceChildren() Live Demo. Without jQuery, we have only two feasible options with JavaScript: innerHTML or removeChild.