For Javascript, I prefer select the dom elements with html data attribute. It is clearer because you use css classes is for styling and the data attributes for Javascript.