WordPress.org

Ready to get started?Download WordPress

Forums

jQuery UI Datepicker does not work with jQuery provided by WordPress (2 posts)

  1. marsev
    Member
    Posted 3 years ago #

    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: http://jqueryui.com/demos/datepicker/default.html

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

    Thanks

  2. iftomkins
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic