should be simple

Results 1 to 2 of 2

Thread: should be simple

  1. #1
    Join Date
    Dec 1969

    Default should be simple

    yes it is JS but i still need help. I have a checkbox with a function call onchange. code is....<BR><BR>&#060;input type="checkbox" name="checkBoxComplete" onchange="what()"&#062;Check<BR><BR>function what()<BR>{<BR> if(document.all.checkBoxComplete.value = "yes")<BR> {<BR> document.all.checkBox.value = 1;<BR> }<BR> else if(document.all.checkBoxComplete.value = "no")<BR> {<BR> document.all.checkBox.value = 0;<BR> }<BR>}<BR><BR>The problem is that it never is "no" or in the case of doing document.all.checkBoxComplete.checked, it is never "false". document.all.checBox.value never = 0. Any help ?

  2. #2
    Join Date
    Dec 1969

    Default RE: should be simple

    try same code instead of checking yes or not check for 1 or 0.<BR>It will work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts