Hi,
I have an img tag inside a unordered list item as follows.
<ul>
<li><img src="next.jpg" class =
"img-list2">UPPERCASE,</li>
<li><img src="next.jpg" class =
"img-list3">lowercase,</li>
<li><img src="next.jpg" class =
"img-list4">digits,</li>
<li><img src="next.jpg" class =
"img-list5">Special characters.</li>
</ul>
I want to change this image dynamically. There fore i was trying to get the
img reference by
var image = $('.list1 li img:first');
image.attr("src", v);
But this does not update the image as i expected.
How can i get this working?
Also, i can get the first <img> as above. But how can i get the <img> of
second list item?
Thanks
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev