I am using the JQuery DatePicker
for selecting date in text boxes. The code i am using is given below,
<script type="text/javascript">
$(document).ready(function () {
$('#date').datepicker({
dateFormat: 'dd-mm-yy',
showOtherMonths: true,
changeMonth: true,
changeYear: true,
showAnim: "fold",
dayNamesMin: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
constrainInput: true,
firstDay: 1
});
});
</script>
It works perfectly in Chrome and IE versions 9 and above. But its not working in IE versions 7 and 8. Then i also tried the following like but still the same, it works in IE 9 and above but not in IE 7 and 8.
JQuery UI DataPicker doesnt work in IE 7
Can someone tell me what i am doing wrong and how to do this? I am using Visual Studio 2010 and the JQuery script i am referring is as below,
<script type="text/javascript" src="Scripts/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="Scripts/jquery-ui.js"></script>