Reputation: 6029
How can I exclude an element which has a certain attr value from the selected elements returned from this line
mDocument.select("input[src*=Btn],img[src*=Btn]")
I need something like "which is not working"
mDocument.select("input[src*=Btn],img[src*=Btn]:not(img[src*=notThisOne])")
Thank you
Upvotes: 1
Views: 1900
Reputation: 17745
Try this
mDocument.select("input[src*=Btn],img[src*=Btn]").not("img[src*=notThisOne]")
Upvotes: 1