function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ajay RanawatAjay Ranawat 

Datepicker in VF Page using Jquery Mobile / Jquery

While developing VF page for Salesforce 1, I need Datepicker so that user can select specific date.

My Code using following scripts-> 

<meta name="viewport" content="width=device-width, initial-scale=1" /> 
        <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"/>
        <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
        <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
        <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
        <script src="https://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
        <link rel="stylesheet" href="https://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"/> 

and then used either of these input tags:

<input type="date" id="date_val" data-role="date"/>
<!--    <input type="date" name="date" id="date" value=""  />  -->

in both cases when clicked on <input> it doesn't shows any datebox popup for user to select.

User-added image

whereas I want when clicked on this <input> it should be like->

User-added image

PratikPratik (Salesforce Developers) 
Hi Ajay,

You can refer to below posts:
http://stackoverflow.com/questions/4946919/invoke-native-date-picker-from-web-app-on-ios-android
https://developer.salesforce.com/forums?id=906F0000000977QIAQ

Thanks,
Pratik
Ajay RanawatAjay Ranawat
I already went through following links, none worked.