jquery Datepicker can´t select a date
-
Sorry i posted my Problem Yesterday in the area Themes. Unfortunately no one could help me so i want to try it here.
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.php
'function 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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘jquery Datepicker can´t select a date’ is closed to new replies.