[jQuery] Re: Add / Remove Class help

2009-08-13 Thread bhu Boue vidya
you could also use $("bookmarked, .bookmarked.not") esp. if the ".not" class is used elsewhere in the html On Aug 13, 7:51 pm, "Richard D. Worth" wrote: > You selector has an error: > $(".bookmarked,.bookmarked not") > > That will match any elements with a class of 'bookmarked' as well as a

[jQuery] Re: Add / Remove Class help

2009-08-13 Thread Richard D. Worth
You selector has an error: $(".bookmarked,.bookmarked not") That will match any elements with a class of 'bookmarked' as well as any elements of type 'not' descendant of elements with a class of bookmarked. It seems you've copied the value from the class attribute of your element. Problem is, the