Site Spy uses jQuery selectors to identify one or more page elements to monitor for clicks. Despite the strange look of some selectors, most expressions are straightforward to create and understand. Note that Click Triggers can bind to more than one element if specified by the jQuery selector.
Selecting by ID
#my_id would select
The above will select the element with ID equal to “my_id”. Since page IDs are supposed to be unique on a page, using this selector will return only a single element.
Selecting by Class
.my_class would select
The above will select the element(s) with their class attribute set to “my_class”.
Selecting Using Multiple Selectors
#my_id, .myclass would select both
<div id="my_id"> and
The comma allows you to combine multiple selectors. So the above will select both the elements with ID=”my_id” as well as those elements with class=”my_class”.