Grey out checkboxes

Results 1 to 2 of 2

Thread: Grey out checkboxes

  1. #1
    Join Date
    Dec 1969

    Default Grey out checkboxes

    How do I grey out a checkbox if a user clicks on another checkbox?

  2. #2
    RustyKnight Guest

    Default RE: Grey out checkboxes

    Phillip<BR><BR>Assuming you really want to use check boxes vs radio buttons.<BR><BR>Assume:<BR>&#060;INPUT id=checkbox1 name=checkbox1 type=checkbox&#062;<BR>&#060;INPUT id=checkbox2 name=checkbox2 type=checkbox&#062;<BR><BR>Then:<BR>&#060;SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript&#062;<BR>Sub checkbox1_onclick<BR>If checkbox1.checked = True Then checkbox2.disabled = true<BR>If checkbox1.checked = False Then checkbox2.disabled = False<BR>End Sub<BR>&#060;/SCRIPT&#062;<BR><BR>Good Luck<BR>

Posting Permissions

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