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
Post a Comment