0

In html5 there is the excellent <date> which works on Opera (and partially on maxthon) like a charme.

but a user gets all dates, so for example in a form registration, how do i filter dates for a user that have under 18 years?

4

1 回答 1

0

如果我理解正确,您只想允许特定范围内的日期。例如,为此,您可以指定min="2010-01-01"仅允许 1 月 1 日之后的日期。您还可以指定max=. 两者都必须是yyyy-mm-dd格式。

于 2012-07-15T21:51:02.683 回答