I'm kinda stuck right now. I need to get a certain class from an element. The class attribute could look like:
<div class="span12 display">
or:
<div class="span24 overview overview-small">
So the span* is always the same just the number can differ.
I really don't know how to get the span* everytime using jQuery.
EDIT: My goal is to change the size of the element. e.g. from span12 to span18. It is possible that I need to change the size from span10 to span18 or from span8 to span18. That's why I'd prefer a generic solution.
So the number is quite random. And it's very important to know the span-number before changing it to span18 because it should be possible to change the previous size (span).
Sorry that I forgot to mention this. :|