How can i select checkbox which contains number in range of numbers (numbers are not repeated) in data attribute. Lets say i have these two checkboxes:
<input type="checkbox" name="A" data-numbers="1,3,2" />
<input type="checkbox" name="B" data-numbers="34,21,11,39,8,6,33" />
and i want to select checkbox by number 3.
Because number 3 is second number in first checkbox data-numbers, it should match and select first checkbox.
data-numbers="[1,2,3]"and jQuery.data() will parse as array automatically, then use array methods