Having something like this:
<div>
<a href="http://a.site.org/a_link.html"></a>
<a href="http://a.site.org/file_name.rdf"></a>
<a href="http://a.site.org/file_features_name.rdf"></a>
<a href="http://a.site.org/file_features2_name.rdf"></a>
</div>
How can I get only those links where the href attribute ends with rdf AND doesn’t contain features?
I know I can use:
$('a[href$=".rdf"]')
to get all the .rdf files. Any idea?
I would use this:
Also can be written as one selector with:
But I think it is less readable.
As always code for humans not for machines.