jQuery - multiple :not selector

jquery, jquery-selectors

Solution

Try using

$('a:not([href*=javascript]):not([href^=#])') ...

Problem

I'm trying to target page-wide links that do not start with a '#' and do not include in-line javascript but I'm having problems figuring out how to structure the selector properly. Based on what I've googled about multiple selectors this should work, both selectors work independently, just not together! ``` $('a:not([href*=javascript]), a:not([href^=#])') .each(function(){... ```

Original source

Related problems