Q:

JQuery Selector best practice

When exposing a jquery script that will be used across multiple pages is it preferred to base the selector on an id or css class?

A:

The best practice would be to use both: ids whenever you need to select elements that are unique within a page and classes whenever you need to select multiple elements.

