'Not' isn't working.
'Not' isn't working.
Can someone explain why this code still gives the alert even when a link has a class of 'current'?
- $("#nav a").click( function ( event ) {
-
- event.preventDefault();
-
- if ( $(this).not(".current") ) {
-
- alert("Do Stuff");
-
- };
-
- });