![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 135 Pomógł: 1 Dołączył: 5.10.2005 Skąd: Opole/Chorzów Ostrzeżenie: (0%) ![]() ![]() |
Zrobilem cos takiego:
Kod <script type="text/javascript"> function checkBtn(checkbox) { var area = document.getElementById("btn1"); if(checkbox.checked==true) { area.disabled=false; } else { area.disabled=true; } } </script>
Ale ten kod dziala poprawnie tylko na IE (IMG:http://forum.php.pl/style_emoticons/default/dry.gif) (IMG:http://forum.php.pl/style_emoticons/default/sadsmiley02.gif) Ten post edytował snipe 24.01.2006, 11:10:42 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Kod document.getElementById("btn1"); odwloujesz sie do pola na podstawie id, ale tego id dla pola nie nadajesz. nadajesz tylko name. musisz tez nadac id
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 135 Pomógł: 1 Dołączył: 5.10.2005 Skąd: Opole/Chorzów Ostrzeżenie: (0%) ![]() ![]() |
ok. dzieki, dziala (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) swoja droga jak moglem taki glupi blad zrobic (IMG:http://forum.php.pl/style_emoticons/default/rolleyes.gif)
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 06:26 |