You need to sign in to do that
Don't have an account?
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.
whereas I want when clicked on this <input> it should be like->
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