Say I have a div and some content inside it.
Content
With JQuery, how do I empty the div without removing the di
If the div has an id, you can do it like this:
$('#id-of-div').html('');
Or you can do all classes of .class-of-div
$('.class-of-div').html('');
Or just all divs
$('div').html('');
EDIT: But empty() (above) would work better.
empty()