I have an element with CSS styles, and a randomly added number at the end of the class:
<div class="menu-523673 control-34689"></div> I want to use wildcard css selector for the second element like this:
[class^="control-"] { color:red; } I looked at this post for inspiration.
It doesn't work I believe, because the element is in the middle. Is there any way I could achieve this result? I cannot use the wildcard selector on the first class name. It has to be the second one.