How to use datepicker.min.js?

On my site I load datepicker.min.js

<script type=’text/javascript’ src=’http://xxx/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4′></script>
<script type=’text/javascript’ src=’http://xxx/wp-includes/js/jquery/ui/datepicker.min.js?ver=1.11.4′></script>
<script type=’text/javascript’>
jQuery(document).ready(function(jQuery){jQuery.datepicker.setDefaults({“closeText”:”Fermer”,”currentText”:”Aujourdu2019hui”,”monthNames”:[“janvier”,”fu00e9vrier”,”mars”,”avril”,”mai”,”juin”,”juillet”,”aou00fbt”,”septembre”,”octobre”,”novembre”,”du00e9cembre”],”monthNamesShort”:[“Jan”,”Fu00e9v”,”Mar”,”Avr”,”Mai”,”Juin”,”Juil”,”Aou00fbt”,”Sep”,”Oct”,”Nov”,”Du00e9c”],”nextText”:”Suivant”,”prevText”:”Pru00e9cu00e9dent”,”dayNames”:[“dimanche”,”lundi”,”mardi”,”mercredi”,”jeudi”,”vendredi”,”samedi”],”dayNamesShort”:[“dim”,”lun”,”mar”,”mer”,”jeu”,”ven”,”sam”],”dayNamesMin”:[“D”,”L”,”M”,”M”,”J”,”V”,”S”],”dateFormat”:”MM d, yy”,”firstDay”:1,”isRTL”:false});});
</script>

So I wish to add a datepicker to my input

<input type=”text” class=”mkdf-filter-min-date” name=”min_date” placeholder=”Check-in:” value=”<?php echo esc_attr( $today ) ?>”/>

But i don’t find how to do.

Read more here:: How to use datepicker.min.js?

Leave a Reply

Your email address will not be published. Required fields are marked *