Classes are ok, but I would consider HTML data attributes as well. Oftentimes, a class name simply doesn't convey enough information to enable the appropriate javascript hooking (without hard-coding element id names). HTML data attributes provide another way to classify and select elements and attach data to an elementthem for auxiliary purposes, like JavaScript-based enhancements.
With jQuery's, HTML data attributes are equally as simple to use as CSS classes.