I have a div and I want to remove all the HTML inside of that div.
How can I do this?
suppose you have a html like this
Hello Goodbye
if you want all html under "first" div to remove permanently. just use this
$('.first').empty();
result will be like this
for temporary(if you want to add them again) we can try detach() like
$('.first').detach();