Enable / Disable Text Boxes

Results 1 to 3 of 3

Thread: Enable / Disable Text Boxes

  1. #1
    Join Date
    Dec 1969

    Default Enable / Disable Text Boxes

    Does anyone know how to enable and disable text boxes in an ASP depending on what a user enters into a field?<BR><BR>I want a text box to become enabled if they select a certain value out of a drop-down box, but cannot figure out how to gray out the text box, or make it impossible to enter a value into it unless that condition is met.<BR><BR>Thanks,<BR>Adam

  2. #2
    Join Date
    Dec 1969

    Default RE: Enable / Disable Text Boxes

    Basically, you will need to use the time told method of If...Then...Else...<BR>If a condition is met, then they can enter into the box. Else, I wouldn&#039t even let them know that the box exists.<BR><BR>I know its a pain, but it works. <BR><BR>

  3. #3
    Sathiya Guest

    Default RE: Enable / Disable Text Boxes

    you can use READONLY in the textbox with If then Else. So that the user can enter value when condition is true or its only readonly conditon is false.<BR><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