I have some lments, like this:
<lment class="item-45 big top hold"></lment>
<lment class="item-46 big top grid"></lment>
<lment class="item-47 big top stop"></lment>
I can select them using:
lments = $('[class^="item"]');
But how do I get the "45", "46", and "47"?
I'm starting with something like this:
itsClass = lments[i].getAttribute('class');
I don't know where to go from here, but want to end up with the equivalent of this:
lmentsItemNum = someExtractorFunction(itsClass);