You'd use a selector like: $('.myClass:not(.selectedClass)')
On Apr 30, 9:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > If an image has a class "myClass", I would like to set a mouseover/ > mouseout behavior. However, if an image has two classes "myClass > selectedClass", I would like to disable such mouseover/mouseout > behaviors. How can I write a JQuery expressoin to only enable the > mouseover/mouseout behavior for the first instance? > > Thanks, - Dave