Re: checkbox arrays and validation
| From: | Marek Kilimajer | Date: | Tue, 05 Oct 2004 12:19:26 +0000 |
| Subject: | Re: checkbox arrays and validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198658@lists.php.net to get a copy of this message | ||
Angelo Zanetti wrote:
its the only form on the page... Based on the other responses I will have to use chkmodels[] and need to get the javascript working. Is it not possible to use the forms name when referencing the array?You should be able to use: document.formName document.forms[0] document.forms['formName']
thank again. AngeloAngelo Zanetti wrote:Marek Kilimajer <lists@kilimajer.net> 10/5/2004 1:52:02 PM >>>Here is the OT part. how do I reference the checkboxes in javascriptifthe chkmodels[] is used? I have tried many things like: myCheckboxArray = document.forms[0].elements["chkmodels[]"];The above should work. Is it really the first form on the page?