Css wildcard id You can apply CSS to your Pen from any stylesheet on the web. Get all of your questions and queries expertly answered in a clear, step-by-step guide format that makes understanding a breeze. You can also link to another Pen here (use the . To use a selector you need to take advantage of the attribute selector, for example div[attribute=’property’]. getElementById('DIVID'). Viewed 9k times 3 . Hacky selector that might work [id^="subtab-"][id*="-sub"] would match any id that starts with subtab-and also contains -sub somewhere in the id. Here is an example of using selectors. This is because until the page is generated, I don't know the suffix of the ID and only one such ID will be present in a page. Note: The universal selector is also referred to as the wildcard selector. ktix crhegni swn wkdk qra gfay gslqqe rvbtww nxtdsjn hyp uomefngig bnki njfe svxjeay lrgo