Can't load jQuery UI of WordPress to my Plugin
-
Hello!
I have created a wordpress plugin and I want to upload it to www.ads-software.com. I am using some jQuery UI elements and you tell me that I have to use the jQuery library that WordPress has. I was loading jQuery UI locally and it was working fine.
wp_enqueue_script( 'jqueryui', plugins_url('js/jquery-ui.min.js', __FILE__));
Now I changed it and I used this code (for example for the datepicker):wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-datepicker');
But the datepicker is not working. Anyone knows why?
Thank you.
- The topic ‘Can't load jQuery UI of WordPress to my Plugin’ is closed to new replies.