Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html] automatyczne przechodzenie pomiedzy komponentami input
drobny
post
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 4.08.2006

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


Mam kilka komponentow input

  1. Godzina: <input type="text" name="godz" maxlength=2>:<input type="text" name="min" maxlength=2>


Chodzi mi o to ze chcialbym zeby po wpisaniu dwoch znakow godziny kursor automatycznie przeszedl do kolejnego komponentu

Nie bardzo mam pomysł jak to zrobic wiec prosze o pomoc

Z góry dzieki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
drobny
post
Post #2





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 4.08.2006

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


Kolejny problem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Wiesz moze jak wprowadzic dane do komponentu input za pomoca skryptu js

Przyklad

  1. function oblicz()
  2. {
  3. wartosc=document.getElementById('a1').value+document.getElementById('a4').value+document.getElementById('a3').value
  4. return wartosc
  5. }
  6.  
  7. <input type="text" name="a1" >
  8. <input type="text" name="a2" >
  9. <input type="text" name="a3" >
  10. <input type="text" name="a4" disabled="tak" onClick=oblicz(); >
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 27.12.2025 - 00:44