I need some help, I have some checkboxes like that
<input class="some-class" type="checkbox" has-format="0">
or
<input class="some-class" type="checkbox" has-format="1">
Is it possible, to check, if all of that checked checkboxes has the has-format value = 1 or 0 ? I mean, e.g. if I want to check = 1 then if any of the checked checkboxes has that value 0 then I’ll get false
You can combine the
:checkedselector with the attribute selector. The following variable is onlytrueif all of the specified conditions are met.If you’re sure that there’s no other value besides 1 and 0, you can replace
[has-format!=1]with[has-format=0].