im using a loop (in a shell script) to setup some jqxButtons :
for (i=1; i<50; i++) {
\$(‘.btn-nomm’ + i ).click(function (){
\$(‘#jqxNavigationBar2’).jqxNavigationBar({ expandedIndexes: [i] });
\$(‘#jqxTabs’).jqxTabs(‘select’, 1);
});
}
The first ‘i’ is well interpreted but i got an issue with ‘expandedIndexes: [i]’ which is not recognized. I guess it is because it is in the click function. Any ideas how i could make this working ?