How can I use jquery to remove a SPECIFIC div that has no children (at least no children that isn’t whitespace). E.g.
<div id='outer'> some content <div id='removeme'> </div> some more content </div>
Want to completely remove the div with id=’removeme’.
To remove the element with
idequal toremoveme:To remove the element with
idequal toremovemeonly if it is empty:To remove all empty
<div>s:EDIT: If it’s not empty, but has whitespace: