Date picker recommendation - Patternslib/Patterns GitHub Wiki

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