Manoj Singh
Manoj Singh

Reputation: 7707

Error using Jquery Datepicker only on IE some pages

I am using Jquery Datepicker in my application.

It is working fine on all the browsers i.e Mozilla, Safari, Chrome etc. However when I am looking in IE 6.0 it giving below error.

"Length is null or not a object".

It is behaving specific for some page in IE 6. In some pages is working fine but in some page after selecting the date,the datepicker window does not get closed and display above error message.

I am using below jquery function for showing my datepicker

$(document).ready(function() 
    {        
        $(".datepicker").datepicker({
        showOn: 'button',
        buttonImage: '../images1/calendar.gif', 
        buttonImageOnly: true,
        dateFormat: 'dd/mm/yy',      
        showOtherMonths: true,
        showStatus: true
        });

    });

Please suggest!

Thanks.

Best Regards, MS

Upvotes: 0

Views: 1153

Answers (1)

Steerpike
Steerpike

Reputation: 17554

Try calling your datepicker with the following:

$(".datepicker").datepicker({ onSelect:function(){}});

Fine, I'll do one 'send me teh codez':

$(document).ready(function() 
    {        
        $(".datepicker").datepicker({
        showOn: 'button',
        buttonImage: '../images1/calendar.gif', 
        buttonImageOnly: true,
        dateFormat: 'dd/mm/yy',      
        showOtherMonths: true,
        showStatus: true,
        onSelect:function(){}
        });

    });

Upvotes: 1

Related Questions