My application has a lot of selectors that have a dynamic ID inside. When that dynamic ID is at the end of the selector, I use [id^='staticPart']
inside of every selector. For example:
#tab-10 > svg > tspan
becomes:
[id^='tab-'] > svg > tspan
I works perfectly, but I can't figure out what to do with selectors like this:
#tab-t0-1
where 0 is a dynamic number and everything else is static. I am trying the following, but I get an invalid selector error:
[id^='tab-']-1