I need to load an html string into memory from the page and remove divs that have a certain class using jQuery.
What I am trying to do is below but it doesn't work.
var reportHTML = $('#collapsereportsdata').html()
$(reportHTML).(".dontprintme").each().remove();
Thanks