I have randomly generated classes in my HTML file.
class="page-index-1
, class="page-index-2
, class="page-index-3
, etc.
I need get these classes using only the prefix page-index-
and with this get all the classes.
I tried to use JQuery $('div[class*=page-index-]').find();
this gives me a huge object but I can't find the classes inside of this.
Does someone have any idea about how can I get these classes? I need to get to reorder as I need it.