Enabling a checkbox - HELP!

Results 1 to 4 of 4

Thread: Enabling a checkbox - HELP!

  1. #1
    Join Date
    Dec 1969

    Default Enabling a checkbox - HELP!

    In a java script function I would like to enable a checkbox that is disabled. Does anybody know how to do this?document.forms[1].volOfficial.disabledThe above is when a checkbox is disabled. Enabling it should be something similar, but I cannot seem to get it right!
    Last edited by Jay; 04-16-2011 at 01:18 AM.

  2. #2
    . Guest

    Default RE: Enabling a checkbox - HELP!

    disabled is a boolean value, it should look like this:<BR><BR>if (some condition is true)<BR>{<BR>document.forms[1].volOfficial.disabled = true<BR>}<BR>else<BR>{<BR>document.forms[1].volOfficial.disabled = false<BR>}

  3. #3
    Join Date
    Dec 1969

    Default Thanks Again!

    That did the trick!

  4. #4
    . Guest

    Default RE: Thanks Again!

    No problem :)

Posting Permissions

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