drop down and disabpling text boxes

Results 1 to 2 of 2

Thread: drop down and disabpling text boxes

  1. #1
    Join Date
    Dec 1969

    Default drop down and disabpling text boxes

    --------------------------------------------------------------------------------<BR><BR>hey on one of my web pages i have a drop down box and a text box. the drop down contanis 4 different value- not played, won, drew and lost.<BR><BR>i want the text box to be disabled when not played is chosen but to be enabled when the other three values in the drop down are chosen.<BR><BR><BR>i have something like this but all it seems to do is lock the drop down<BR><BR>Form Name = frmGame<BR>Textbox Name = txtResult<BR>Dropdown Name = outcome<BR><BR><BR>&#060;SCRIPT language=&#039;javascript&#039;&#062;<BR>function DisableTextbox()<BR>{<BR>if(document.frmGame.outco me.value=&#039;Not Selected&#039;)<BR>{<BR>document.frmGame.txtResult .disabled = true;<BR>}<BR>else<BR>{<BR>document.frmGame.txtRes ult.disabled = false;<BR>}<BR>}<BR>&#060;/SCRIPT&#062;<BR>

  2. #2
    Join Date
    Dec 1969

    Default Missing =

    if(document.frmGame.outcome.value[hl="yellow"]=[/hl]=&#039;Not Selected&#039;)<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