I made a script in jsfiddle http://jsfiddle.net/JGM85/279/ and wanted to use it in my plugin option page. I created the css file(css/style.css) and a js file(js/main.js) And I referenced it like this:
<script type="text/javascript" src="js/main.js"></script>
<link href="css/style.css" rel="stylesheet" />
But the datepicker is not working nor the js and css. Does Wordpress has a special way of calling JS,Jquery, and css files?
Updated code
function super_plugin_scripts(){
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-datepicker');
}
add_action('wp_enqueue_scripts','super_plugin_scripts');
?>
<html>
<div class="demo">
<p>Date: <input type="text" id="datepicker" placeholder="Select a date"></p>
</div><!-- End demo -->
</html>