0

Is there a way to do

[id="abc-1"]:checked + label,
[id="abc-2"]:checked + label,
[id="abc-3"]:checked + label,
[id="abc-4"]:checked + label,
[id="abc-5"]:checked + label,

...

in one line for multiple id's? Like

[id="abc-1 - abc-10"]:checked + label
Mr. Potter
  • 85
  • 7

1 Answers1

3

so you can do

[id^="abc-"]

which basically selects all elements which have an id attribute starting with abc-

ashish singh
  • 6,526
  • 2
  • 15
  • 35