jQuery Datepicker can't select a date
-
Hi,
first of all…sorry for my english :/.
I want to use the Datepicker in a Template for my Custom Post Type. There are 3 Textfields to filter the Query and the Datepicker should be one of them. If i click in the Textfield the Datepicker pop up but i can’t select a Date!! I searched yesterday for hours but i cant find a solution. I use a Child-Them from Catch-Box and this function is in my functions.phpfunction meine_scripts() { wp_enqueue_script('meinscript', dirname(get_bloginfo('stylesheet_url')) . '/js/meinscript.js', array('jquery') ); wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-datepicker'); wp_enqueue_style('jquery.ui.theme', dirname(get_bloginfo('stylesheet_url')) . '/js/jquery-ui-1.10.4.custom.css'); } add_action( 'init', 'meine_scripts' );
And so looks the file meinscript.js
jQuery(document).ready(function() { jQuery('.meindatum').datepicker({ monthNames: ['Januar','Februar','Maerz','April','Mai','Juni', 'Juli','August','September','Oktober','November','Dezember'], monthNamesShort: ['Jan','Feb','M?r','Apr','Mai','Jun', 'Jul','Aug','Sep','Okt','Nov','Dez'], dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], //dateFormat : "dd.mm.yyyy", firstDay : 1 }); });
I hope you can help me.
Thank’s
Ati74
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘jQuery Datepicker can't select a date’ is closed to new replies.