On Dec 5, 2008, at 6:46 AM, Liam Potter wrote:


I have a simple function to add a "last" class to the last li tag in a specific ul

$(".createNewOrder ul li:last").addClass('last');

problem is in IE6 it selects all the li's and adds the class.

Anyone come across this before?

I've never seen this before. Does it work correctly in other browsers? Can you post a demo page or use http://jsbin.com for a stripped down version of a page so we can see the problem?


--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com

Reply via email to