Guest User

Untitled

a guest
Jan 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <script>
  2. $(function(){
  3. if (!Modernizr.inputtypes.date) {
  4. // If not native HTML5 support, fallback to jQuery datePicker
  5. $('input[type=date]').datepicker({
  6. // Consistent format with the HTML5 picker
  7. dateFormat : 'yy-mm-dd'
  8. },
  9. // Localization
  10. $.datepicker.regional['it']
  11. );
  12. }
  13. });
  14. </script>
  15.  
  16. `input type="date"` is not supported on mozilla
Add Comment
Please, Sign In to add comment