I’m developing a plugin for WordPress and I need a datepicker. So I enqueue the jquery and jquery-ui
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-datepicker');
and called the datepicker
jQuery(document).ready(function($){
$('#date').datepicker({});
});
It worked pretty well, however my datepicker has no style at all. Anyone knows how to fix that?
Here ya go … try this:
This is what I use in my plugin to load a theme. That CDN has all the basic jquery-ui themes.
Hope this helps …