[jQuery] Find all a elements not within a div

[jQuery] Find all a elements not within a div


Hi..
Im trying to find all A elements which is not in div.pages
I have tried
$('div.pages').parents().find('a').click(function() {
alert('click');
});
$('a').not('div.pages a').click(function() {
alert('click');
});
But these does not work - can somebody help me :-)
--
View this message in context: http://www.nabble.com/Find-all-a-elements-not-within-a-div-tp19867090s27240p19867090.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.