Closed Thread Icon

Preserved Topic: How to programatically uncheck a checkbox? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17912" title="Pages that link to Preserved Topic: How to programatically uncheck a checkbox? (Page 1 of 1)" rel="nofollow" >Preserved Topic: How to programatically uncheck a checkbox? <span class="small">(Page 1 of 1)</span>\

 
Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 01-10-2001 21:47

Okay. I have a form that has a text field and a checkbox. Only one is used - either the user selects the checkbox, or enters data in the text box. I have figured out how to clear the text box when the user checks the check box by using:
onFocus="document.designWindow.url.value=''; with designWindow being the form name, and url being the text field. But I need to also do it the other way around. If the user clicks into the text box to enter data, the check box should be unchecked. I can't for the life of me figure out how to set the value of the check box. What is the value supposed to be set to?

Any ideas?

Pat Richard
Web weenie
http://www.gurusnetwork.com
ICQ 23113317

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 01-10-2001 22:36

document.myForm.myCheckbox.checked = false

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 01-10-2001 23:44

Thanks. That did the trick!

Pat Richard
Web weenie
http://www.gurusnetwork.com
ICQ 23113317

« BackwardsOnwards »

Show Forum Drop Down Menu