Disabling Form Elements

Results 1 to 2 of 2

Thread: Disabling Form Elements

  1. #1
    Join Date
    Dec 1969

    Default Disabling Form Elements

    Hi all, I have a small problem with disabling form elements.<BR>Essentially, I have a page that comprises a radio box, with<BR>some associated check boxes. Depending on which radio box is currently checked, I only want to allow access to certain check boxes on the form.<BR><BR>Anyway, using jscript I iterate through the elements of the<BR>form setting its DISABLED property to true/false as appropriate.<BR>Works ok in IE, but nothing happens in NN.<BR><BR>My books are particularly vague - they dont specify any restrictions for the DISABLED attribute in the FORM tags, so I assumed there wouldn&#039;t be any restrictions when accessing it from script. Guess I was wrong.<BR><BR>Thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default RE: Disabling Form Elements

    In IE I&#039;d recommend<BR>&#060;SPAN id=hideit style="display:&#039;none&#039;"&#062; then the buttons &#060;/SPAN&#062;<BR>then on your control that wants to display what&#039;s in the SPAN use<BR>onClick="document.all.hideit.style.display= &#039;inline&#039;"<BR><BR>This, according to Danny Goodman&#039;s required text "Dynamic HTML" (O&#039;Reilly) didn&#039;t work in NN 4 . I write exclusively for IE users of our Intranet, so can&#039;t say if it will work in newer NN versions. Give it a try.

Posting Permissions

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