I’m trying to make the sample from here work on my page. I’ve included the following into my page body:
<script>
$(function () {
$("#datepicker").datepicker();
});
</script>
<div id="myDivId">
<p>Date: <input type="text" id="datepicker"></p>
</div>
which is the same as the sample.
In the sample when I click onto the edit box the datepicker appears. I can step between months and when I click on a specific date that date gets posted into the edit box.
Now on my page when I click onto the edit box the datepicker does appear, but “next” and “previous” buttons have no effect and when I click onto a specific date the datepicker doesn’t close and the date is not posted but the page scrolls to the top.
The problem is only reproduced in IE (I tried IE 8 only) – works in both Firefox and Chrome.
What am I doing wrong?
Turns out it was because of some “extra safe” configuration that is enabled on Windows Server 2008 R2 by default.