basic each() question
basic each() question
I want to get all element which have the classname 'blaat'. So i tried using 'each()', but for some reason it isn't working...
This is the code i have:
- jQuery.each ( 'li.blaat', function(){
alert('aaa');
});
I only have 2 elements with the classname 'blaat', but it gives me 9 times an alert message... Am i using the function wrong here??