[Phpmyadmin-devel] about input type="date"

Michal Čihař michal at cihar.com
Mon Jan 20 14:44:19 CET 2014


Hi

Dne Mon, 20 Jan 2014 08:04:34 -0500
Marc Delisle <marc at infomarc.info> napsal(a):

> Please have a look at [0]. The issue is about input type="date". This 
> gives a nice date validation in Chrome, but blocks Chrome users from 
> pasting dates.
> 
> I suggested to keep this input type but add a checkbox so that a user 
> can revert to input type="text".

How about using input type="text" and adding
pattern="[\d]{4}-[\d]{2}-[\d]{2}" to do the client side validation
(this is just a not tested example)?

Adding checkbox sounds like a bad idea to pollute user interface.

-- 
	Michal Čihař | http://cihar.com | http://phpmyadmin.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20140120/36d4b817/attachment.sig>


More information about the Developers mailing list