I have written a simple html page in Sharepoint 2013 with a text input that is meant to use datepicker.js. When I click into the text box, the calendar correctly pops up, but no dates are selectable. This exact code works when I simply open it in the browser outside of SharePoint.
I have tried using body onload, making sure the datepicker is initialized in an explicit function.
<link rel="stylesheet" href="/sites/###-###-###-###/###/SiteAssets/js/datepicker.material.css">
<script src=/'sites/##-###-###-###/###/SiteAssets/js/datepicker.js'></script>
<script>
function initialize(){
var datepicker = new Datepicker('#datepicker');
}
</script>
<body onload="initialize()">
<form>
<input type="text" id="datepicker"></input>
</form>
</body>
The calendar pops up and shows today's date highlighted, but I am unable to select any date at all. Any ideas are greatly appreciated!