As a beginner in JavaScript, I am struggling to create a datepicker input field that allows multiple selections. Despite researching for solutions, none seem to fit my specific case. Can anyone offer guidance on how to achieve this? Your help is greatly appreciated =)
Here's what I have attempted so far
<script type="text/javascript" language="javascript">
function pageLoad(sender, args) {
$(document).ready(function() {
$("#<%=datepicker.ClientID %>").datepicker();
$(".ui-datepicker-trigger").mouseover(function() {
$(this).css('cursor', 'pointer');
});
});
}
$(function() {
$("#datepicker").datepicker();
});
</script>
<input type = "text" id = "datepicker">
Currently, the code only allows for selecting single dates. Is there a way to modify it to support selecting multiple dates? Thank you!