prain
asked on
HTML Emable/Disable list boxed
Here is my scenario.
I have a list box and buttons.
1. At the start of the page I MUST set the listBox to Disable.
2. User Enters an input from a textfield, and then clicks a button. Based on the validity of the input
(say valid input) the listBox get enabled. Otherwise, the list box stays dsabled.
How to do this in HTML.?
prain
I have a list box and buttons.
1. At the start of the page I MUST set the listBox to Disable.
2. User Enters an input from a textfield, and then clicks a button. Based on the validity of the input
(say valid input) the listBox get enabled. Otherwise, the list box stays dsabled.
How to do this in HTML.?
prain
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Exactly. My example applies to any form control you have got. Just change the JavaScript statement to refer to the name of the desired control.
_______________
Nayer Naguib
_______________
Nayer Naguib
ASKER
Hello,
I split the points b/w the two of you as poth contributed. But Nayer gets more because he threw the first close solution and apot modified that a bit.
I split the points b/w the two of you as poth contributed. But Nayer gets more because he threw the first close solution and apot modified that a bit.
ASKER