jQuery not replacing text in ReportViewer

Posted by firedrawndagger on Stack Overflow See other posts from Stack Overflow or by firedrawndagger
Published on 2010-05-17T06:26:18Z Indexed on 2010/05/17 6:30 UTC
Read the original article Hit count: 342

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.

© Stack Overflow or respective owner

Related posts about reportviewer

Related posts about reportviewer2008