I have a several scrollable menus at one page. There is a jQuery function which handles all those menus in "menu per menu" fashion, after I type this (hardcoded as it is) in a .js file:
$(function(){
Scrollable(".menu_wrapper1");
Scrollable(".menu_wrapper2");
..and so on, all up to...
Scrollable(".menu_wrapper9");
HTML is simple as this..
<div class="menu_wrapper1">Menu data</div>
<div class="menu_wrapper2">Menu data 2</div>
and so on, up to 9 again.
Anyway, there is some possibility in near future for those menus to be more then 9 at one page or with different numbers at the end (like "menu_wrapper17"
) for example), so any chance for those different numbers of classes to be recognized and applied to this function by jQuery itself?
Something like Scrollable(".menu_wrapper[*]");
or similar I guess so function can be applied to any number?
Thx!
EDIT: Please, beware that every class has its own controls given by function.