Can you guess which datepicker is this?
It is the jQuery UI datepicker tweaked for jQuery Mobile!
I have written a small patch that allows you to use the jQuery UI datepicker with jQuery Mobile 1.4.x. To use the script:
- Include jQuery UI datepicker javascript after jQuery Mobile javascript files. You do not need the whole package; just grab the
jquery.ui.datepicker.js
file from from jQuery UI ZIP downloads. - Include the monkey patch script; it basically replaces jQuery UI CSS classes with jQuery Mobile CSS classes in datepicker HTML.
- Add CSS rules to fine tune the appearance of datepicker.
- Call
$(selector).datepicker()
method onpagebeforecreate
orpagecreate
.