How to empty contents inside a div using jquery

To remove contents inside a class “gallery” :

$(“.gallery”).empty();

 

To remove class “gallery” itself:

$(“.gallery”).remove();