The javascript is :
<script type="text/javascript">
$(document).ready(function () {
alert('hi');
$("<%=txtDateDOC.ClientID%>").datepicker({
changeMonth: true,
changeYear: true,
hideIfNoPrevNext: false
});
});
</script>
The console error is : Use of getPreventDefault() is deprecated. Use defaultPrevented instead.