How to filter a number of divs based on what they have in their custom data attribute using jQuery? The problem is that the attribute can have more than 1 value
data
To find the elements whose data-size attribute contain the string "small" you simply do this:
$(".size[data-size*='small']");