You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6. Add a class="nativedatepicker" to your <input> element for which you want the native datepicker
13
+
7. Add the following jQuery fragment to handle the click on these input elements:
10
14
11
15
```
12
16
$('.nativedatepicker').focus(function(event) {
@@ -50,9 +54,9 @@
50
54
});
51
55
```
52
56
53
-
7. It is recommended to prefil these input fields and make these fields read only with a standard date format, preferably with three letter month so it can always be parsed.
57
+
8. It is recommended to prefil these input fields and make these fields read only with a standard date format, preferably with three letter month so it can always be parsed.
54
58
55
-
8. You may need to convert the result of date.parse() back to an object to get the picker to work a second or third time around. If so, try inserting this code after the myNewDate declaration:
59
+
9. You may need to convert the result of date.parse() back to an object to get the picker to work a second or third time around. If so, try inserting this code after the myNewDate declaration:
0 commit comments