If you ask if you can select multiple elements (e.g. 1, 3 and 7 in one instance and 3.4 and 8 in another), I don't believe jquery has a way to do this at the moment, since the event is tagged in onclick .
On the other hand, if you want certain elements to be grouped (1 and 2 are always together), just merge them into a div.
source share