Do stuff on :not class current.
I know this should be simple, but I don't know the correct way. If a link does not have the class current when clicked on, I want to run some code. I also want to make sure the default behavior is disabled on all links. This is what I have.
- $("#nav a").click( function ( event ) {
-
- event.preventDefault();
-
- $("#nav a:not(.current)", function(){
-
- alert("Do Stuff");
- });
-
- });
-