HTML5 Date Support


/ Published in: HTML
Save to your folder(s)

Testing, if Browser supports HTML5 "date" Value for type in input-fields


Copy this code and paste it in your HTML
  1. var i = document.createElement("input");
  2. i.setAttribute("type", "date");
  3. if (i.type == "text") {
  4. // No HTML5 native date picker support, use jQuery or your favorite framework to create one.
  5. }

URL: http://www.catswhocode.com/blog/enhance-your-web-forms-with-new-html5features

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.