I need to load an html string into memory from a page and remove divs that have a specific class using jQuery.
What I'm trying to do is below, but it does not work.
var reportHTML = $('#collapsereportsdata').html()
$(reportHTML).(".dontprintme").each().remove();
thank
source
share