bookmark_borderHighlighting The Current Or Future Date In The Datepicker

If you need to highlight a current or future date within the datepicker, here’s a code snippet to do it.

Note: You’ll need to replace #input_1_20 with a selector for your field.

<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($) {
    $( "#input_1_20" ).datepicker({ 
        defaultDate: '+7d',
        minDate: '+7d',
        gotoCurrent: true,
        prevText: '',
        showOn: 'both',
        buttonImage: '/wp-content/plugins/gravityforms/images/calendar.png',
        buttonImageOnly: true
    });
});
</script>