Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP]Wklejanie do kilku pól. Zamiana spacji ?, Jak wyżej
kondziu9516
post
Post #1





Grupa: Zarejestrowani
Postów: 142
Pomógł: 1
Dołączył: 9.08.2011
Skąd: Bielsko Biała

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


Witam,
Mam takie o pole formularza w które wpisuje się wartości.
Jeżeli jest już full w danym polu to przenosi do następnego.
Jak zrobić, aby mając wartość do wklejenia np: 41 3432 1889 0000 6850 6829 4230
i chcę aby automatycznie to rozdzieliło.
Jak to zrobić?
Chyba istnieje możliwość, że np. w polu pierwszym klikam kursorem i potem CTRL+V i rozdziela.

Oto kod tych pól i screen:

  1. <tr>
  2. <td><label for="email">Na rachunek:</label> </td>
  3. <td><input type="text" id="nr1" name="a" size="1" maxlength="2" style="text-align: center;" onkeyup="if(this.value.length==this.maxLength)this.form.b.focus()" />
  4. <input type="text" id="nr2" name="b" size="3" maxlength="4" style="text-align: center;" onkeyup="if(this.value.length==this.maxLength)this.form.c.focus()" />
  5. <input type="text" id="nr3" name="c" size="3" maxlength="4" style="text-align: center;" onkeyup="if(this.value.length==this.maxLength)this.form.d.focus()" />
  6. <input type="text" id="nr4" name="d" size="3" maxlength="4" style="text-align: center;" onkeyup="if(this.value.length==this.maxLength)this.form.e.focus()" />
  7. <input type="text" id="nr5" name="e" size="3" maxlength="4" style="text-align: center;" onkeyup="if(this.value.length==this.maxLength)this.form.f.focus()" />
  8. <input type="text" id="nr6" name="f" size="3" maxlength="4" style="text-align: center;" onkeyup="if(this.value.length==this.maxLength)this.form.g.focus()" />
  9. <input type="text" id="nr7" name="g" size="3" maxlength="4" style="text-align: center;" />
  10. <div class="cleaner_h10"></div></td>
  11. </tr>


SCREEN: (IMG:http://screenshu.com/static/uploads/temporary/om/h6/1s/d6gvee.jpg)

Oczywiście za pomoc lecą +++++
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: 14.09.2025 - 14:23