Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   [JS] Focus wechseln, wenn 2 Zeichen im input sind (https://www.delphipraxis.net/41165-%5Bjavascript%5D-focus-wechseln-wenn-2-zeichen-im-input-sind.html)

S2B 27. Feb 2005 10:14


[JS] Focus wechseln, wenn 2 Zeichen im input sind
 
Hi @all,
ich möchte mit HTML & JavaScript ein Datumseingabefeld realisieren. Jetzt möchte ich, dass, wenn in dem input für die Tage 2 Zeichen stehen, der Focus auf das Feld für die Monate springt usw. Ist das irgendwie möglich? :gruebel:

Code:
<input type="text" name="day" style="width: 30px" maxlength="2" tabindex="1" value="" />.
<input type="text" name="month" style="width: 30px" maxlength="2" tabindex="2" value="" />.
<input type="text" name="year" style="width: 40px" maxlength="4" tabindex="3" value="" />

toms 27. Feb 2005 10:32

Re: [JS] Focus wechseln, wenn 2 Zeichen im input sind
 
Hi,

Schau hier: http://javascript.internet.com/forms/auto-tab.html

S2B 27. Feb 2005 10:37

Re: [JS] Focus wechseln, wenn 2 Zeichen im input sind
 
Cool, danke! :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz