1

I am using Jquery datetimepicker(js/timepicker.js) and getting error "datepicker._defaults' is null or not an object" in extend method of following javascript file

Error comes when loading timepicker.js file.'datepicker' object is undefined in javascript file.

===================timepicker.js===============
    /**
     * Extending default values
     */
    $.extend($.datepicker._defaults, {
        'stepMinutes': 1, // Number of minutes to step up/down
        'stepHours': 1, // Number of hours to step up/down
        'time24h': false, // True if 24h time
        'showTime': false, // Show timepicker with datepicker
        'altTimeField': '' // Selector for an alternate field to store time into
    }); 
4

1 に答える 1

5

you need to include first "jquery-ui-1.7.2.custom.min.js" after that include "timepicker.js" file

于 2012-08-27T11:34:52.267 に答える