OK this isn't entirely PHP-related but I was hoping you guys could help me:
I have a dynamically generated list of values with different values for each day of the week. The problem is I use an array, not hard-coded names. When I try to add a little checkbox so it fills in values for me, I get javascript errors.
Assuming the form name is "in",
element = 'monp[b6226991612c118094da82d6f10732c2]';
document.in.elements[element].value = 6.0;
element = 'tuep[b6226991612c118094da82d6f10732c2]';
document.in.elements[element].value = 6.0;
It's just using the forms and arrays seems to be giving me problems. Does anyone know how I can change values via JS for arrays within forms? I'm sure there's just a missing ' here or something. Please help!
Thanks,
Mike