'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'?


  1. $("#nav a").click( function ( event ) {
  2. event.preventDefault();
  3. if ( $(this).not(".current") ) {
  4. alert("Do Stuff");
  5. };
  6. });