Just want to loop an array in javascript.
This is my base array
var family = ["1A+1C","1A+2C","1A+3C","2A","2A+1C","2A+2C","2A+3C"];
and i want the ageset0 to ageset6 array values in to be fetched as per the slot. currenlty the ageset0 values are getting printed all the way
how to achieve it. thanks in advance.
this is the sample page.
If I understood your question then I think you want something like this (you want both arrays
ageset0 and ageset1to be printed, currently there is only ‘ageset0’ is being printed through the loop)DEMO.
Update: (From the comment)
DEMO.