Re: checkbox arrays and validation
| From: | Angelo Zanetti | Date: | Tue, 05 Oct 2004 12:06:37 +0000 |
| Subject: | Re: checkbox arrays and validation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-198657@lists.php.net to get a copy of this message | ||
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?
thank again.
Angelo
>>> Marek Kilimajer <lists@kilimajer.net> 10/5/2004 1:52:02 PM >>>
Angelo Zanetti wrote:
> Here is the OT part. how do I reference the checkboxes in javascript
if
> the 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?
--------------------------------------------------------------------
Disclaimer
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is
intended for the attention and use only of the addressee.
Should you have received this e-mail in error, please delete
and destroy it and any attachments thereto immediately.
Under no circumstances will the Cape Technikon or the sender
of this e-mail be liable to any party for any direct, indirect,
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911