Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
JavaScript runtime error: Unable to set property 'currentDay' of undefined or null reference

C#
$(function () {
    $('#txtFromDate').datepicker({
        showOn: "button",
        buttonImage: "calender_icon.gif",
        width: 18,
        height: 18,
        buttonText: "",
        buttonImageOnly: true,
        dateFormat: 'mm/dd/yy',
        onSelect: function () {
            $(this).datetimepicker("hide");
            $('#errormessage').html('');
        }
    });
});



How to resolve this error
Posted
Updated 6-Dec-13 22:00pm
v2
Comments
JoCodes 7-Dec-13 3:29am    
Add the code which gives error in your question
Sampath Lokuge 7-Dec-13 3:45am    
Plz put your code snippet which gives above error.
syna syna 7-Dec-13 3:55am    
$(function () {
$('#txtFromDate').datepicker({
showOn: "button",
buttonImage: "calender_icon.gif",
width: 18,
height: 18,
buttonText: "",
buttonImageOnly: true,
dateFormat: 'mm/dd/yy',
onSelect: function () {
$(this).datetimepicker("hide");
$('#errormessage').html('');
}
});
});
Sampath Lokuge 7-Dec-13 4:02am    
Where is the 'currentDay' property's code ?
Richard MacCutchan 7-Dec-13 4:07am    
That is not the code that produces the error. Where is this function actually called?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900