Is there someone out there that has a good date picker for jQuery mobile?
I'm going to let the user select a "from" date and a "to" date and I haven't found anything good for this situation.
Any ideas?
Is there someone out there that has a good date picker for jQuery mobile?
I'm going to let the user select a "from" date and a "to" date and I haven't found anything good for this situation.
Any ideas?
I worked on updating the jquery ui datepicker to latest versions of jquery , jqueryui and jquery mobile so for jq1.9.1 jqui 1.10.2 and jqm 1.3.0. I prefered to leave as is my previous answer so you can see how it evolved.
the changeMonth and changeYear dropdown needed special care to work (unstylying was frequent)
here it is how i updated the experimental jqueryui datepicker for jqmobile :
js bin code snippet
You can link to the datepicker script instead of the whole jqueryui package.
The readonly prop prevents the keyboard to appear on ios
It is just a tweak of the datepicker to make it work on jqm, the goal would be to be able to override the _generatehtml function of datepicker widget and being able to give as input te jquery mobile theme to use. So you'll not need that whole bunch of addClass and avoid unnecessary DOM manipulation
I only tested for ios 6 (iphone, ipad) and desktop (chrome, firefox, safari), let us know about other tests.
Hope it helps as mush as needed it :)
here is all the code separated in html, js and css :
HTML
JS
CSS
Here is the updated version to work with jqm 1.4 : jsbin jqm 1.4.0
It is taking account of changes of jquery mobile 1.4.0 and needs a little bit less of dom manipulation
Here is the datepicker specially for mobile
http://jquerymobile.com/demos/1.0a4.1/experiments/ui-datepicker/