jQuery dutch datepicker
This Jquery datepicker example uses the dutch datepicker file and formats the date into dd/mm/yy.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<script src="https://raw.github.com/jquery/jquery-ui/master/ui/i18n/jquery.ui.datepicker-nl.js" type="text/javascript"></script> <script> $.datepicker.setDefaults( $.datepicker.regional[ "nl" ] ); $(function() { $( "#datepicker" ).datepicker({ numberOfMonths: 2, showButtonPanel: false, dateFormat : 'dd/mm/yy' }); }); </script> <input id="datepicker" type="text" maxlength=10 placeholder="01/12/2013" required> |
Place this part in the header:
1 |
<script src="https://raw.github.com/jquery/jquery-ui/master/ui/i18n/jquery.ui.datepicker-nl.js" type="text/javascript"></script> |
Place this code in the body:
1 2 3 4 5 6 7 8 9 10 11 12 |
<script> $.datepicker.setDefaults( $.datepicker.regional[ "nl" ] ); $(function() { $( "#datepicker" ).datepicker({ numberOfMonths: 2, showButtonPanel: false, dateFormat : 'dd/mm/yy' }); }); </script> <input id="datepicker" type="text" maxlength=10 placeholder="01/12/2013" required> |
Leave a Reply