thanks Mike, worked like a charm!! and thanks to the others who replied! >>> "Ford, Mike" <M.Ford@xxxxxxxxxxxxxx> 10/5/2004 3:09:32 PM >>> On 05 October 2004 13:55, Angelo Zanetti wrote: > 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? So long as your form goes something like: <form name="frmft" ....> <input type="checkbox" name="chkmodels[]" value="1">Value 1<br> <input type="checkbox" name="chkmodels[]" value="2">Value 2<br> <input type="checkbox" name="chkmodels[]" value="3">Value 3<br> ... </form> you can refer to the checkboxes simply as document.frmft["chkmodels[]"] This is the way I've always done it, and it's always worked a treat. Of course, in this situation this will give you an array of checkbox objects which you then have to index into, but that's a whole other story. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@xxxxxxxxxxxxxx Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -------------------------------------------------------------------- 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