|
|
|
RadioButton and Drop-Down List (enabled/disabled)
|
|||
|---|---|---|---|
|
#18+
Всем привет! Не могу деактивировать/активировать одновременно оба выпадающих списка. Помогите плиз <html> <head> <script type="text/javascript"> function StateEnableDisable(radioValue) { if(radioValue == "yes") { for(int i=0; i < 2; i++) { document.getElementById('test')[i].disabled = false; } } if(radioValue =="no") { for(int i=0; i < 2; i++) { document.getElementById('test')[i].disabled = true; } } } </script> </head> <body> <input type="radio" name="list" value="ja" onchange="StateEnableDisable(this.value)" >yes</input> <input type="radio" name="list" value="nein" onchange="StateEnableDisable(this.value)" checked>no</input><br/><br /> <select id="test"> <option value="1" selected>1</option> <option value="2">2</option> </select> <select id="test" > <option value="1" selected>1</option> <option value="2">2</option> </select> </body> </html> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.11.2014, 17:47 |
|
||
|
RadioButton and Drop-Down List (enabled/disabled)
|
|||
|---|---|---|---|
|
#18+
Ekanikol, так? Код: html 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.11.2014, 20:22 |
|
||
|
|

start [/forum/topic.php?fid=22&fpage=85&tid=1446476]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
51ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
| others: | 241ms |
| total: | 368ms |

| 0 / 0 |
