Andrew

Its .checked, not .value

parent.document.all.Test.checked = false;  //Turn checkbox off

parent.document.all.Test.checked = true;  //Turn checkbox On

Also be fairful with using document.all cause it looks at .all as an array so you would have to index them if there are more than one checkbox with the same name

 

Steve


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Scott
Sent: Wednesday, February 23, 2005 5:36 PM
To: CFAussie Mailing List
Subject: [cfaussie] _javascript_ Checkbox change

 

 

I am having a bit of a brain drain here.

 

The following _javascript_ I would have thought would change the state of a checkbox, can anyone tell me why I am screwing this up.

 

parent.document.all.Test.value = false;  //Turn checkbox off

parent.document.all.Test.value = true;  //Turn checkbox On

 


Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976  

 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to