08-11-2009, 04:20 PM
|
#12 (permalink)
|
|
The Addict
Join Date: Jun 2008
Posts: 335
Thanks: 2
|
Nay the disaster is when you do this:
javascript Code:
$("#imgID").attr('src', 'http://google.com/img.png');
instead of
javascript Code:
document.getElementById('imgID').setAttribute('src', 'http://google.com/img.png');
I've seen the jQuery library - uncompressed - be called into web apps for the sole purpose of changing some attributes.
|
|
|
|