I would like to dynamically create and reference some variables on the fly, but i'm not understanding how to.
Here is what I would think 'should' work, but I know doesn't.
var weeks = 4;
for(i=0; i<weeks.length;i++){
var 'week_'+i = valueFromXML;
}
function wtFn (){
'week_'+i.splice(-1, 1);
if('week_'+i.length <=0){
$(this).parent().parent().slideUp();
}
}
I'm open to suggestions. Thanks in advance.