mixpanel-js icon indicating copy to clipboard operation
mixpanel-js copied to clipboard

How can i create selector?

Open Pengjee opened this issue 6 years ago • 1 comments

Hello! I read the source code and found a 'dom_query' funciton in utils.js, but I don't know how to generate a selector.

Pengjee avatar Sep 12 '19 03:09 Pengjee

Standard CSS selectors. For instance to select any <a> element with the class "trackme", the selector would be a.trackme. https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors

tdumitrescu avatar Sep 12 '19 19:09 tdumitrescu