I am pretty confident this is not possible. But how can I target all elements with a data attribute.
tr[data-*] //target all data's
I am pretty confident this is not possible. But how can I target all elements with a data attribute.
tr[data-*] //target all data's
Neither the docs on Attribute Selectors, or the docs on data attributes gives any example or a clue to a feature like this.
Instead it splicitly states that an attribute selector is composed by
[attr=value]
[attr] Represents an element with an attribute name of attr.
With variants in the equality comparision (such as "starts with", "ends with", etc) but only to the value, never on the attr
name.
So, if your aim is to add a custom cursor to every data-something
element, you'd need a different approach, maybe giving them specific classes.