My links looked like:
<a href="xxx.pdf">linktext</a> I want to add some html to the a tag if there is a .pdf.
I've found this:
jQuery('a[href$=".pdf"]').each(function() { .... }); But I dont know what I have to add to get this:
<a href="xxx.pdf" target="_blank" class="download">linktext</a>
jQuery('.entry-content a[href$=".pdf"]').each(function() { jQuery("a").addClass("test"); });