Re: Setting checkboxes on/off from Javascript

2004-11-24 Thread dnz
I liedplease disregard. Thanks a bunch Andrew!! On Wed, 24 Nov 2004 10:15:22 -0600, dnz <[EMAIL PROTECTED]> wrote: > Thank you for your reply. > > I tried your suggestion but still couldn't get to work. > > there's something else. I do get an object back but I think (its > wierd)...t

Re: Setting checkboxes on/off from Javascript

2004-11-24 Thread dnz
Thank you for your reply. I tried your suggestion but still couldn't get to work. there's something else. I do get an object back but I think (its wierd)...the object I get is of type "hidden" (you know, the ' wrote: > hmm how about: > > document.forms[0].elements['somecheckbox'].checked =

Re: Setting checkboxes on/off from Javascript

2004-11-24 Thread Andrew Hill
hmm how about: document.forms[0].elements['somecheckbox'].checked = false; any luck with that? The value property is whats submitted when you submit, so its the checked property your after, but Id have thought that your document.getElementById("somecheckbox") should work? Maybe it needs an expli

Setting checkboxes on/off from Javascript

2004-11-24 Thread dnz
Hi all. I have a struts form bean to populate data on my JSP page which works perfectly fine. I use a boolean attribute in my form bean to set the checkbox control (at page load time) based on the boolean value. I'm using the