I often need to select multiple elements at once with jquery... to do this I usually just add a class to all the elements I'd like to select and then use jquery to select by class.
Is this a bad practice or should I use something like the html 5 data attribute instead?