I am trying to replace a CSS style in the following code:
var theHTML = this.html();
theHTML.replace("style=\"display:none;\"", "style=\"display:inline;\"");
alert(theHTML);
The html looks like this:
<IMG SRC="picturesFromServer.asp?PhotoId=365481" style="display:none;">
However once i check to see if it changed it or not it keeps displaying none instead of inline. I’m just trying to make it visible before i print it.
EDIT : If what you are trying to accomplish is, get the
imgtag insidethisand append it somewhere else, withdisplay:none;do this.http://jsfiddle.net/tL3Uf/
HTML
Javascript
CSS