问题
<input data-role="date" type="text"> It doesn't work when I click on it.
http://jsfiddle.net/geoyws/7KRD9/1/
Am I missing something? When I click on the field, there is no datepicker popup.
回答1:
Try this for date in Jquery mobile 1.4.1
<input type="date" id="date_val" data-role="datebox" data-options='{"mode": "calbox", "useNewStyle":true}'>
this also works JQM v 1.3
Refer this fiddle output FIDDLE DEMO
来源:https://stackoverflow.com/questions/22376180/jquery-mobile-1-4-2-datepicker-data-role-date-not-working