Even though Ive been using jQuery for a while, I still go to this page all the time. http://docs.jquery.com/Selectors I can't remember all of it by heart. :)
Near the bottom is has one like the one you wanted, $("p:gt(2)") So we just change it a little to $("li:gt(7)") and you got it. In terms of draggable, you need to do a little more. There is a plugin by Brandon Aaron called Behavior. It listens for DOM changes and reapplies jQuery rules when the change happens. http://jquery.com/plugins/project/Behavior Glen On 8/7/07, Michael Price <[EMAIL PROTECTED]> wrote: > > > Hi all, > I'm guessing this is really easy in jQuery so enlighten me - given a > list of, say, ten items, I want to leave the top six items unstyled, but > add a class to any below number six - in order to highlight, in this > specific case, that only the first six items will be used, and from > seven downwards don't count. > > So that's the question - how do I add a class to the seventh and all > further list items? And is it easy to wrap into a function? This list is > being sorted via drag and drop so it would need to change each > time......... > > Regards, > Michael Price > >