How to empty contents inside a div using jquery

  • 0

To remove contents inside a class “gallery” :

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

 

To remove class “gallery” itself:

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

To remove contents inside a class “gallery” : $(“.gallery”).empty();   To remove class “gallery” itself: $(“.gallery”).remove();

To remove contents inside a class “gallery” : $(“.gallery”).empty();   To remove class “gallery” itself: $(“.gallery”).remove();