![]() |
[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="" /> |
Re: [JS] Focus wechseln, wenn 2 Zeichen im input sind
|
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