Title: $(&#8230;).datepicker is not a function
Last modified: August 30, 2016

---

# $(…).datepicker is not a function

 *  Resolved [shoppa](https://wordpress.org/support/users/shoppa/)
 * (@shoppa)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/datepicker-is-not-a-function/)
 * Hi, i use theme virtue. Firebug shows on all pages:
 *     ```
       $(...).datepicker is not a function
       $('#_available_on').datepicker();
       ```
   
 * Is this just me?
 * [https://wordpress.org/plugins/woocommerce-upcoming-product/](https://wordpress.org/plugins/woocommerce-upcoming-product/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Mohaiminul Islam](https://wordpress.org/support/users/skshaikat/)
 * (@skshaikat)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/datepicker-is-not-a-function/#post-6615141)
 * This is a issue for not loading jQuery ui library at your page. please make sure
   the page loads jQuery ui.
 * By default WooCommerce loads the library on product edit page maybe any other
   plugin or your theme loading the library again or removing it.
 *  Thread Starter [shoppa](https://wordpress.org/support/users/shoppa/)
 * (@shoppa)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/datepicker-is-not-a-function/#post-6615145)
 * Hi again,
 * it seems the problem is datepicker loads twice in the frontend. one from a other
   plugin and one from yours.
 * Question is why is your script loading in the frontend? For what?
    Have now disabled
   the line 47. //add_action( ‘wp_enqueue_scripts’, array( $this, ‘enqueue_scripts’));
 * In the backend the datepicker works like it should. But i don’t need this field,
   leave it every time empty.
 * Will i have problems with my solution?
 * Cheers and thanks for that good plugin
    shoppa
 *  Plugin Author [Mohaiminul Islam](https://wordpress.org/support/users/skshaikat/)
 * (@skshaikat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/datepicker-is-not-a-function/#post-6615146)
 * Your solution is good.
    You can use
 * > admin_enqueue_script
 *  to load the script only in back-end rather than comment out total script.
    `
   add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );`
 * I hope this will work better. Please let me know the status. I want to resolve
   this issue.
 * Thank you.
 *  Plugin Author [Mohaiminul Islam](https://wordpress.org/support/users/skshaikat/)
 * (@skshaikat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/datepicker-is-not-a-function/#post-6615148)
 * This issue was for double load of the same script. I have fixed this on 1.3.1
   version so I am closing this issue. please let me know if there are any more 
   issue.
 *  Plugin Author [Mohaiminul Islam](https://wordpress.org/support/users/skshaikat/)
 * (@skshaikat)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/datepicker-is-not-a-function/#post-6615149)
 * Resolving this issue. as this issue fixed already on 1.3.1 version

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘$(…).datepicker is not a function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-upcoming-product_935f7c.
   svg)
 * [WooCommerce Upcoming Products](https://wordpress.org/plugins/woocommerce-upcoming-product/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-upcoming-product/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-upcoming-product/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-upcoming-product/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-upcoming-product/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-upcoming-product/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Mohaiminul Islam](https://wordpress.org/support/users/skshaikat/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/datepicker-is-not-a-function/#post-6615149)
 * Status: resolved