Hello All
The code to add Jquery DatePicker is as given below, which has to be added in the page within the php tag
<?php
wp_enqueue_script('jquery-ui-datepicker');
wp_enqueue_style('jquery-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
?>
In the form
<input type="text" id="MyDate" name="MyDate" value=""/>
In the JavaScript section the code is as below
jQuery(document).ready(function() {
jQuery('#MyDate').datepicker({
dateFormat : 'dd-mm-yy'
});
});
It may not be the correct way, but it is working for me.
I tried my level best to do it by myself for many days, since I was unable to do that I posted in the forum.
Since David has replied, no one has viewed this and it was unresolved for me.
Thanks
Rao