Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML]Lista wyboru + pole
shaolin33
post
Post #1





Grupa: Zarejestrowani
Postów: 136
Pomógł: 0
Dołączył: 5.10.2012

Ostrzeżenie: (10%)
X----


Witam,,

mam liste wyboru:


  1. <div>
  2. list wyboru:<select id="rodzaj" name="rodzaj">
  3. (...)
  4. </select></div>



chciałbym aby po wyborze 2 opcji pojawiało się pole tekstowe w ktorym wpisze cos:)

tylko w 2 opcji (IMG:style_emoticons/default/smile.gif)

Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
shaolin33
post
Post #2





Grupa: Zarejestrowani
Postów: 136
Pomógł: 0
Dołączył: 5.10.2012

Ostrzeżenie: (10%)
X----


  1. <div>Wyplata kredytu:<select id="wyplata_kredytu" name="wyplata_kredytu" onchange="if (this.value==2) alert('Jupi');">
  2. <option>gotówką w kasie Banku<value="1"></option>
  3. <option>w formie przelewu na rachunek nr.<value="2"></option>
  4. (...)
  5. </select></div>


jesli chodzi o ukrywanie pola to chodzi o to ":


  1. onclick="document.getElementById('test').style.display = this.checked
  2.  
  3. <div id="test" style="display: none">
  4. <div>Imię i Nazwisko:<input type="text" name="imie_nazwisko_por2" disabled="disabled" />


chyba namieszałem (IMG:style_emoticons/default/smile.gif) (IMG:style_emoticons/default/smile.gif)

Ten post edytował shaolin33 22.10.2012, 12:22:30
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: 30.12.2025 - 04:04