Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Przycisk a parametr disabled
snipe
post 24.01.2006, 11:09:40
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>


  1. <form action="?module=user&action=register" method="post">
  2. Login: <input type="text" name="user_name" /><br />Email: <input type="text" name="email" /><br />Hasło: <input type="password" name="password" /><br />Powtórz hasło: <input type="password" name="rpassword" /><p>Zanim się zarejestrujesz, zapoznaj się z regulaminem: <a href="#">www.jakisregulamin.pl</a><br />Zapoznałem się z regulaminem: <input type="checkbox" onClick="checkBtn(this)"><br /><input type="submit" name="btn1" value="Zarejestruj" DISABLED /></form>


Ale ten kod dziala poprawnie tylko na IE dry.gif sadsmiley02.gif

Ten post edytował snipe 24.01.2006, 11:10:42


--------------------
Go to the top of the page
+Quote Post

Posty w temacie
- snipe   Przycisk a parametr disabled   24.01.2006, 11:09:40
- - nospor   Koddocument.getElementById("btn1"...   24.01.2006, 11:12:29
- - snipe   ok. dzieki, dziala swoja droga jak moglem taki gl...   24.01.2006, 11:27:47


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 22.06.2025 - 16:10