Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][JavaScript]Checbox + blokowanie pola tekstowego
klapaucius
post
Post #1





Grupa: Zarejestrowani
Postów: 223
Pomógł: 3
Dołączył: 4.07.2009
Skąd: Kraków

Ostrzeżenie: (0%)
-----


Jak zrobić najprościej w formularzu taki "bajer", że jest jakiś checkbox oraz pole tekstowe. I to pole tekstowe jest domyślnie zablokowane, jednak po zaznaczeniu checkboxa, by to pole tekstowe sie odblokowywało... ?

Ten post edytował klapaucius 24.10.2012, 15:06:11
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Swirek
post
Post #2





Grupa: Zarejestrowani
Postów: 221
Pomógł: 20
Dołączył: 4.05.2006
Skąd: Polska

Ostrzeżenie: (0%)
-----


html disabled="disabled"
  1. if(element.checked==true)
  2. js. element.disabled=false;
  3. else
  4. js. element.disabled=true;


Ten post edytował Swirek 24.10.2012, 15:09:22
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.12.2025 - 23:51