0

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>
Community
  • 1
  • 1
Mano Prathibhan C
  • 488
  • 1
  • 11
  • 38

1 Answers1

3

The 2.x branch of jQuery does not support IE 8 and below, from the documentation

The 1.x branch includes support for IE 6/7/8 and the 2.x branch does not.

You'll have to swap to the 1.x branch

Also note that current versions of jQuery UI only supports IE 11 officially

adeneo
  • 312,895
  • 29
  • 395
  • 388
  • Oh i see..ok i will check that..Thank you..any version of 1.x is fine? – Mano Prathibhan C Nov 01 '16 at 11:09
  • @ManoPrathibhanC - yes, it should be, but when dealing with old IE versions you should always check the support for each library you intend to use, as most have abandoned anything older than IE 9 – adeneo Nov 01 '16 at 11:10