I've come across some HTML that uses classes without any real CSS attached to them rather than id's just to group/identify them with jquery selectors:
html:
<div class=someClass>
</div>
<div class=someClass>
</div>
<div class=anotherClass>
</div>
CSS:
(nothing, just an empty file)
javascript:
$(".someClass").each( ... )
I think I know why they do this: because html elements can only have one id and it must unique. But it feels as if it's "a dirty workaround" trick to use classes for identification rather than style. Is this a common trick that is generally approved, or is it frowned upon and do better alternatives exist?