javascript - The jQuery addClass function quits my script -


uhm, i've got this script not work.

it's line: document.getelementbyid('thetest').addclass('superspecial');

as class should added (but isn't) whole script quits... know why?

should be:

jquery('#thetest').addclass('superspecial'); 

or

document.getelementbyid('thetest').classname += ' superspecial'; 

document.getelementbyid doesn't return jquery element.
that's why has no method error.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -