Reputation: 59
I want to find PDF files with jquery. I did it with DOCX files with the code:
$(el).find('a[href$=".docx"]')
how can I do it for PDF files?
Upvotes: 0
Views: 266
Reputation: 59252
Just replace the .docx to .pdf
.docx
.pdf
$(el).find('a[href$=".pdf"]')
Upvotes: 1