get var insert in function
Hello:
Code: Select all
I am unsure how to do this and I dont even know what to search for. I need to get the var grid = Apperyio('grid').text(); into liveEventArray[arrayVal].(grid) = gridOutput; were is says grid. Full code below provided by Yuri. It works if I replace(gris) with the name grid_1 but I need to change grid_1 to the value of grid which could be grid_2 or grid_3
var grid = Apperyio('grid').text();
var liveEventArray = Apperyio.storage.fireCalendarArray.get();
//here you can alter your array in way you need. Like:
liveEventArray[arrayVal].val(grid) = gridOutput;
Apperyio.storage.fireCalendarArray.set(liveEventArray);