Hello I have a prboblem with the next code:
function loadOptions(num){
listTabs = new Array();
for(var i = 1 ; i < parseInt(num) + 1 ; i++){
var tabActu = {
'name':'tab'+i,
'src':'urlImatge'
};
listTabs.add(tabActu);
$.each(listTabs,function(key,value){
alert(key+" : "+value);
});
}
}
I need to create an list of elements equal to the num parameter. I can't find the error.