Hi Marek, I try to access the array like this:
document.frmft.elements["chkmodels[]"]; but doesnt work. I also tried this: models = document.forms['frmft'].elements["chkmodels[]"]; is there not a problem with the elements part? thanks >>> Marek Kilimajer <[EMAIL PROTECTED]> 10/5/2004 2:19:26 PM >>> 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. > Angelo > > >>>>Marek Kilimajer <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php