Thanks everyone! `[class*="btn-"]` worked like a charm—didn’t realize it was that straightforward.
I tried the regex approach too, but yeah, it felt clunky compared to CSS selectors.
One follow-up: What if I need to exclude elements with *both* `btn-` and `disabled`? Would `[class*="btn-"]:not([class*="disabled"])` work?
Y’all are lifesavers! 🙏
I tried the regex approach too, but yeah, it felt clunky compared to CSS selectors.
One follow-up: What if I need to exclude elements with *both* `btn-` and `disabled`? Would `[class*="btn-"]:not([class*="disabled"])` work?
Y’all are lifesavers! 🙏
