Avatar

Level 4

For the large number of fields that need this applied to them, assuming you have the checkboxes in a logical order like:

C1        C2         C3         C4         C5

day       day        day       day        day

day       day        day       day        day

day       day        day       day        day

day       day        day       day        day

So if they select C3 (checkbox 3), we get it's instanceIndex (2), then we can loop over the rows:

for(var i=0; i<numRows.length; i++){

       numRows[i].day[C3.instanceIndex].<Steve's code>

}

that would then do a column (that's psuedocode of course...I'm at work and can't write up a real example for you...but if I could I would!)

Hope that helps a little bit