65
rated 0 times
[
70]
[
5]
/ answers: 1 / hits: 35058
/ 13 Years ago, mon, june 20, 2011, 12:00:00
var slides = $(.promo-slide);
slides.each(function(key, value){
if (key == 1) {
this.addClass(first);
}
});
Why do I get an error saying:
Uncaught TypeError: Object #<HTMLDivElement> has no method 'addClass'
From the above code?
More From » jquery