Return the index when two data-attributes match.
Hi, is it possible to do the following:
I want to return the index when the filter matches the criteria of two data-attributes:
I tried with something like this but it doesn't work:
- var a1 = $("#page2").find(".resultsBox img[data-ba*='smith'],[data-cd*='london'").filter(...
So if the data-ba="jones" & data-cd="london" it will return the index?
Thanks.