I have some effects in my menu, which works fine, but these effects shouldn’t trigger on a menupoint which belongs to class "active". How should I do that? Using eval or similar things?
To sum it up: I want to deny an effect if the trigger has a special class.
In each of your mouse events, use
.hasClass()in anif()statement:Here, the
if()checks to see whether the element the event was fired on has the classactive. If it does, the functionreturns, not executing any more code inside it.You haven’t given any code or HTML to work with, so this is a general solution. Please update your question with more detail so I can give you a better answer.