Input-Field

J

Jörg Heinrich

Hallo NG,

i want to make a input field to enter a date (dd.mm.yyyy (german-format)).

Is it possible to preformat the field, so the "." appears automaticly after
you enter the "dd"?

Thanks for helping!
Joerg
 
J

Jukka K. Korpela

Jörg Heinrich said:
i want to make a input field to enter a date (dd.mm.yyyy
(german-format)).

Better make it unambiguous format: yyyy-mm-dd, which is also
a DIN standard (since there's an EN equivalent to ISO 8601).
Is it possible to preformat the field, so the "." appears
automaticly after you enter the "dd"?

Not in HTML. Using JavaScript you could make some punctuation appear
automatically that way (and you could make your form handler accept the
dates with or without punctuation). But it would probably confuse and
even irritate more than help users.
 
A

Andreas Prilop

M

Mark Parnell

Is it possible to preformat the field, so the "." appears automaticly after
you enter the "dd"?

The best way would be to make it 3 separate fields (you could then make
them <select> elements rather than text input if you want). Your form
handler can combine them when processing the form if necessary.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top