When dealing with multiple IDs such as id1
, id2
, and id3
that share common classes like .selectize-input
and .select-dropdown
, it can become cumbersome to set styles individually for each ID.
Instead of writing:
#id1 .selectize-input, #id2 .selectize-input, #id3 .selectize-input {};
#id1 .selectize-dropdown, #id2 .selectize-dropdown, #id3 .selectize-dropdown {};
Is there a more efficient way to apply these styles?
Note: Keep in mind that there are other selectors requiring different styles. This feature is necessary for my design needs.