I have spent a week trying to get a multiselect date picker to work. Of all the components I have tried multiDatesPicker fits the bill but I cannot get it to work. I even downloaded the same versions of the two included jquery .js files they use in the example. Please can someone help me I have to have this finished by the end of the month.
below is the downloaded example code
<html>
<head>
<!-- includes jquery, jquery ui and multidatespicker scripts -->
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.4.custom.min.js"></script>
<script type="text/javascript" src="jquery.ui.multidatespicker.js"></script>
<script>
$(function() {
// initiate the multiDatesPicker.
// Note that you can still use jQuery UI datepicker options (and events and methods too :)
$('#calendar').multiDatesPicker({
minDate: +1, // jQuery UI datepicker option
addDates: ['26/09/2010', '01/12/2010'] // multidatepicker option
});
// shows selected dates in an alert message
$('#show_dates').click(function(e) {
e.preventDefault();
var dates = $('#calendar').multiDatesPicker('getDates');
var dates_in_string = '';
for(d in dates) dates_in_string+= dates[d]+' ';
alert(dates_in_string);
});
});
</script>
</head>
<body>
<div id="calendar"></div>
<button id="show_dates">Show selected dates!</button>
</body>
</html>
I have checked all three .js files load OK.