Jquery: exclude element
You could use not()
to exclude elements:
$('a[rel]').not('#IdOfElement').each(function()
You can use :not()
in your selector.
For example: $("a[rel]:not(div#divId a[rel])")
A jsfiddle illustrating the use of the :not
selector in your case: http://jsfiddle.net/6s6Mm/
You can exclude specific Elements with the .not() function like this:
$('a[rel]').not('#sepcialElement').each(...);