Skip to content

Date picker recommendation

Cornelis G. A. Kolbach edited this page Jan 8, 2014 · 1 revision

Date picker

Description

A colour picker lets the user choose a colour in a visual manner. The colour can be sent to a server to be used throughout an application.

Documentation

The following markup will allow for a colour picker upon click on the input field:

<input type="date" class="pat-date-picker" />

Developer notes

  • Uses <input type="date" />
  • Is only triggered by class="pat-date-picker" on an input field of type="date" or type="text"
  • Should not trigger for (mobile) browsers that have a native solution (Use Yepnope?)

Existing polyfills