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:
<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()" /> <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()" /> <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()" /> <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()" /> <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()" /> <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()" /> <input type="text" id="nr7" name="g" size="3" maxlength="4" style="text-align: center;" />
SCREEN: (IMG:
http://screenshu.com/static/uploads/temporary/om/h6/1s/d6gvee.jpg)
Oczywiście za pomoc lecą +++++