Re: [Radiant] how to set a custom div tag on the last child

2008-10-20 Thread Joost de Niet
Thank for this tip Sean! I used the jquery equivalent ... $("ul.menu li:last").addClass("last"); Cheers, Joost On 20 okt 2008, at 21:29, Sean Cribbs wrote: If you know the length of the number of children, this is simple to do. Say your root page has 5 children. I'd change your snippet t

Re: [Radiant] how to set a custom div tag on the last child

2008-10-20 Thread Sean Cribbs
If you know the length of the number of children, this is simple to do. Say your root page has 5 children. I'd change your snippet to look like this: Otherwise, this is pretty simple to do with Prototype (give the an ID like 'menu' or something): $('menu').select('li').last