enable/disable from select |
enable/disable from select |
barz |
Apr 12 2014, 11:39 AM
Post
#1
|
Group: Members Posts: 3 Joined: 18-September 09 Member No.: 9,797 |
Hi friends!
I have a text field and a dropdownlist If I type something in the text field the dropdownlist become disabled; If I select the options 2 or 3 of the dropdownlist the text field become disabled; If I select the options 1 of the dropdownlist the text field become enabled. How can I get this with javascript? thanks! |
Christian J |
Apr 12 2014, 12:19 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,673 Joined: 10-August 06 Member No.: 7 |
Which part are you having trouble with?
Bonus questions: - What if option 4 or higher is selected in the dropdown? - What if users cut or paste content in the textfield (as opposed to typing)? - What should happen to users that disable javascript? |
barz |
Apr 12 2014, 12:25 PM
Post
#3
|
Group: Members Posts: 3 Joined: 18-September 09 Member No.: 9,797 |
- What if option 4 or higher is selected in the dropdown? all options except the first one must disable the text field - What if users cut or paste content in the textfield (as opposed to typing)? - What should happen to users that disable javascript? I've tried with onkeydown and with onchange events but the result isn't good |
Christian J |
Apr 12 2014, 01:59 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,673 Joined: 10-August 06 Member No.: 7 |
|
Lo-Fi Version | Time is now: 29th May 2024 - 02:53 AM |