How can I toggle a Yes/No check box and display value in adjoining field ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi

I have a test form with two fields. The first field is a Yes/No
checkbox. The second field is a text box that I want to display
"checked" if the checkbox is checked and "unchecked" if the checkbox
is not checked.

Now, if I check the checkbox the text box displays "checked".
However, if I uncheck the checkbox, "checked" remains in the text box.

I want to the text box to toggle between "checked" and "unchecked"
when I check and uncheck the checkbox.

Please let me know how I can accomplish this and thanks in advance for
your help.

Mark

.



Relevant Pages

  • Re: checkboxes and update query
    ... check / uncheck if they want a certain record to display in a gallery ... echo ''. ... What you need to do is give each checkbox a unique id - maybe something ...
    (comp.lang.php)
  • Re: oncheckedchanged event is not firing everytime on checkbox
    ... Twice checking/unchecking on the client without postback ... One checkbox is deselected ... check uncheck other pages. ... - change events fire ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: oncheckedchanged event is not firing everytime on checkbox
    ... Thanks for you indepth analysis of the problem and yes there is a postback ... checkbox to true, but now the question with us is how to solve the problem ... > check uncheck other pages. ... > - change events fire ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: using onchange to retrieve a checkbox value.
    ... I apologise if this i not what you would call a PHP problem. ... When a checkbox is checked or unchecked, ... When I check a box, everything works great, the database ... when I 'uncheck' the box. ...
    (comp.lang.php)
  • Re: calendar question?
    ... the day to see what daily tasks aren't complete yet and which ones are. ... The second method is to run an update query to uncheck the boxes. ... must be reset when the task is completed and checked. ... But I have a task table that has a checkbox column at the ...
    (microsoft.public.access.formscoding)