View Single Post
Old 08-11-2009, 04:20 PM   #12 (permalink)
Enfernikus
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

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.
__________________
My Blog
Enfernikus is offline  
Reply With Quote