Creating Textfield of type date for android

android, css, html, jquery, jquery-mobile

Solution

Only certain browsers will show the date picker. This post may be useful for you to detect if it will or not:

HTML5 Type Detection and Plugin Initialization

If the browser doesn't support the datepicker then you could add a custom jquery ui datepicker

Problem

I am creating a HTML5 app for android. I am using jQuery mobile with following headers: ``` <link rel="stylesheet" href="../../lib/jquery.mobile-1.3.0.min.css" /> <script src="../../lib/jquery-1.8.2.min.js"></script> <script src="../../lib/jquery.mobile-1.3.0.min.js"></script> ``` and I add the input field as described at jQuery mobile's demo site: ``` <input type="date" data-clear-btn="false" name="date-1" id="date-1" value=""> ``` However, instead of the datepicker I just get a textbox. Am I missing something?

Original source

Related problems