Date Picker Not Showing Calendar
-
I have a field that I would like to work as a date picker in all browser (chrome, firefox, safari, ie). page here
In my functions.php file I have this code:
if ( is_page(22603) )
{
add_filter( ‘wpcf7_support_html5_fallback’, ‘__return_true’ );
wp_enqueue_script(‘jquery-ui-datepicker’);
wp_enqueue_script( ‘autofill-clinical-site’, get_stylesheet_directory_uri() . ‘/js/date-picker-test.js’, array(‘jquery’), ‘1.0.0’, true );
}In an external js file, I have this code:
jQuery(document).ready(function($) {
$(‘#datepicker’).datepicker({autoclose: false});
})When I view the source code, I see the class on the field has been appended with hasDatepicker, so the external js file is working (?)
It seems others have gotten this to work. Can anyone help with what I am doing wrong?
- The topic ‘Date Picker Not Showing Calendar’ is closed to new replies.