Wow, this board is great....lots of info here
This is actually my code... I put in
php so I could just loop it and save myself lots of time.....its designed for lots and lots of parts.
Code:
echo "<script type='text/javascript'>";
echo "function checkBoxValidate(part0,condition0,part1,condition1,part2,condition2,part3,condition3){";
for ($i=0;$i<=3;$i++){
echo "var CheckboxElement = eval('document.new_car_script.' + part$i + '[' + condition$i + ']');";
echo "CheckboxElement.checked = true;";
The thing is I couldn't get glenngv's method to work....seems js doesn't like you putting a variable/or combining variables/strings into a document command? i would like to be as efficent as possible however. Please advise.
Thanks - Jman