I have got some classes
.text-1 .text-2 .text-3
I want to select them all, how to do that? Thanks for the help
You don't necessarily need to specify asterisk *, you can do this too:
*
$('[class^="text-"]')
Notice the addition of - after text something you are looking for.
-
text
Check out the jQuery starts with selector for more information.