Support » Plugins » jQuery UI Datepicker does not work with jQuery provided by WordPress

  • Hi there,

    I try to use the jQuery UI Datepicker in the WP-backend. Therefor I downloaded the js-file of datepicker and enqueued it.

    wp_enqueue_script( 'jquery-ui-datepicker',
                       get_bloginfo( 'template_directory' ) . '/admin/jquery.ui.datepicker.js',
                       array ( 'jquery', 'jquery-ui-core', 'jquery-ui-widget' ),
                       '1.8.13' );

    But with the jQuery-versions provided by WordPress it does not work. That is true for alle versions above 3.1.3 (my development version is 3.2 Beta already). When I replace the jQuery-version of WP with the one provided in the datepicker-demo it works.

    I took all files from the datepicker-demo:

    That is strange to me, since I really do not know the jQuery-framework. Who can help?


Viewing 1 replies (of 1 total)
  • I’m having the same problem. I feel like maybe the wordpress jquery doesn’t have the datepicker function? But I’ve also tried calling the Jquery UI library directly from the CDN, and that doesn’t work either. Perhaps because of a JS conflict? I’m starting a new thread!

Viewing 1 replies (of 1 total)
  • The topic ‘jQuery UI Datepicker does not work with jQuery provided by WordPress’ is closed to new replies.