JSFiddle - React, Tailwind, and code Playground
HTML
<a>hello</a>
<a rel="ignore">ignore</a>
<a rel="foo">foo</a>
JavaScript
$("a[rel!='ignore']").each(function() {
this.rel += 'theValue';
});
$("a").each(function() {
alert(this.rel);
});