
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
28.11.2014, 17:47
|
|||
|---|---|---|---|
|
|||
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, 20:22
|
|||
|---|---|---|---|
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. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=22&mobile=1&tid=1446476]: |
0ms |
get settings: |
7ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
62ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
30ms |
get tp. blocked users: |
1ms |
| others: | 219ms |
| total: | 343ms |

| 0 / 0 |
