First time here. Trying to extend my plug in parametres
Hi People, I am using the datepicker plug in, and am trying to extend it to not allow sundays to be selected. Now the problem I have is I am no javascript savy... so not sure the correct way to format this.
Here is my code for the plug in:
<script type="text/javascript">
$(function() {
// Tabs
$('#datepicker1').datepicker({
beforeShowDay: function(date) {
return [(date.getDay() > 1), ""];
}
minDate: 0,
maxDate: "+12M +0D",
dateFormat: 'dd-mm-yy'
});
});
</script>
The above is not working, It is not showing the calendar, so I know something is up somewhere here? anyone spot the obvious?
The reason it has datepicker1 is on the page it is dynamic and can have multiple occurences of the calendar but with numbers after each.
Thanks
Barry