I have a problem with jQuery. In my HTML Code I have some elements with rising numbers like this:
<ul class="flexer-0"> ... <ul class="flexer-1"> ... <ul class="flexer-2">
This classes the ul get with this code:
$('ul').addClass(function(index) {
return 'flexer-' + index;
});
How am I able to select this elements later by jQuery.
My idea was like this:
$("ul.flexer-0") ...
$("ul.flexer-1") ...
$("ul.flexer-2") ...
This is stressful, because it will be become a long page with many ul-lists. It should be possible to get the index-number with jQuery.
Has anyone an idea?
Kai