jQuery - multiple :not selector

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(){...

Solution 1:

Try using

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

Solution 2:

You could also try:

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