Me and my datepicker again haha,,
Looking to change the date format to DD, d MM yy..and i have it working,, with this code :
<script>
jQuery.datepicker.setDefaults({dateFormat:"DD, d MM yy"});
</script>
Or this
<script>
$.datepicker.setDefaults({dateFormat: 'DD, d MM yy'});
<!-- $('#datepicker1, #datepicker2').datepicker(); -->
</script>
but its not how the demo show you, This being the Demo and the rest of my code:
Demo
<script type="text/javascript">
$(function(){
$( "#datepicker" ).datepicker();
$( "#format" ).change(function() {
$( "#datepicker" ).datepicker({dateFormat: 'DD, d MM, yy'}); <!-- FULL Format -->
});
I just wonder why the above doesnt work And which is best to use from the two that does work if to us them at all, is there any draw backs using them .
$("input[name='Your Start Date is']").datepicker({
showOn: "button",
buttonImage: "/contact/images/calendar.gif",
buttonImageOnly: true
});
$("input[name='Your End Date is']").datepicker({
showOn: "button",
buttonImage: "/contact/images/calendar.gif",
buttonImageOnly: true
});
});
</script>
<script type="text/javascript">
$(function(){
$("input[name='Your Start Date is']").datepicker();
$("input[name='Your End Date is']").datepicker();
});
</script>