[jQuery] nextAll Chaining when nextAll is Empty

2008-12-12 Thread Reepsy
Perhaps this is naive of me, but I was expecting this to work: $(this).nextAll('a').andSelf().removeClass ('star_selected').triggerHandler('mouseout'); It is used in a rating system I wrote, where there are 5 tags in a row. If you click on one, this fires (adds a class name on all previous and

[jQuery] nextAll Chaining when nextAll is Empty

2008-12-12 Thread Reepsy
This might sound naive, but I expected this to work: $(this).nextAll('a').andSelf().removeClass ('star_selected').triggerHandler('mouseout'); It's from a star rating I wrote, where I have 5 tags in a row. If you click on one it removes a class from it and all that follow it, and then fires the