*= in attribute selectors is useful for when something contains a string. If
you explicitly want anchors with a named class, select by the class instead,
e.g. $("a.myclass"). If you wanted anchors that did not have a specific
class, $("a:not(.myclass)"). If you explicitly want all anchors where the
class attribute does not contain the string myclass (which sounds very odd)
you would use $("a:not([class*=myclass])").I'd highly recommend spending some time reading the selectors page, http://docs.jquery.com/Selectors. aquaone On Wed, May 20, 2009 at 17:06, jonathan <[email protected]> wrote: > > $('a[class*=myclass]') selects all a elements whose class attribute > contains 'myclass', how do I do the opposite? >

