i don't think its a bad practice. If you need them you should use them. It makes tonally sense.
If you don't want to, maybe you have a parent element that surrounds the all elements or you could find something else they have in common and translate that in to a selector. $("div#somediv > div").hide()
But its gonna cost you more time and thinking as if you just give them a class.