Remove inner divs from a parent div using jquery
$("#parentDiv").empty();
from here
Have you tried $("#parentDiv div").remove()
or $("#parentDiv").empty()
?
.empty()
removes all of the children of the selected element(s); .remove()
removes the selected element(s) themselves as well as any children.
Thus, $("#parentdiv").empty();
makes the most sense here, because you want to remove the children but not the parent div.