i am using cluetip jquery plugin and i show a popup with some html (using local source hidden div). I now have some jquery that wants to change one icon with another and i have the following code:
var img = "#mySelector";
$(img).attr("src", "/content/images/ajax-loader.gif");
this works fine when this image is on the regular page but when its inside a popup, the image doesn't change. Is there any way to change the html on a tooltip popup while it is up in cluetip jquery plugin?
I know that the selector is correct because, I also have this line:
var img = "#mySelector";
var currentSrc = $(img).attr("src");
and currentSrc reads the current string.
NOTE:
Also, in firebug when i look at
var currentSrc = $(img).attr("src");
AFTER i change the source to
/content/images/ajax-loader.gif
it does read:
/content/images/ajax-loader.gif
so it looks like the code is working but the image is simply not changing .. .