Datepicker problem
-
Hello,
I need your help. When i choose a date, i would like to disable the previous ones. How can i make this happen?
I often use this code for contact form 7 and datepicker for contact form 7:
/* code */
function calendar_js(){
?>
<script>
jQuery(function($){
var start = $(‘.date-417 input’).first();
var end = $(‘.date-419 input’).first();start.on(‘change’, function() {
var start_date = $(this).datepicker(‘getDate’);
start_date.setDate(start_date.getDate() + 1);
end.datepicker(‘option’, ‘minDate’, start_date);
});
});
</script>
<?php
}
add_action(‘wp_footer’, ‘calendar_js’);Thank you in advance.
The page I need help with: [log in to see the link]
- The topic ‘Datepicker problem’ is closed to new replies.