jQuery not replacing text in ReportViewer
- by firedrawndagger
I'm trying to replace text that I got back in the ReportViewer using jQuery. My div, wrapped in the table cell, display "empty" as text - which I plan on replacing with my own formatted text on the client side.
I can use jQuery just fine to set a class on the div (which is inside a td element). Example:
jQuery('div:contains("empty")').addClass('replacetext');
But for some reason I cannot do this:
jQuery('div:contains("empty")').replaceWith('<div>Hello World</div>');
I tried this out on some other elements on the page and jQuery does work... but it seems like this issue is ReportViewer (I'm using 2008) specific.