what does this error mean on my timepicker?-Collection of common programming errors

Does any body know what these errors coming from my error console mean while I am using trent richardson’s timepicker? What do I need to do?

$.timepicker is undefined

this line in the jsfile: $t.datepicker($.timepicker._newInst($t, o)._defaults);

$.datepicker is undefined

this line in the jsfile: $.datepicker._base_selectDate = $.datepicker._selectDate;

trent richardson’s jsfile: http://trentrichardson.com/examples/timepicker/js/jquery-ui-timepicker-addon.js

my jsfile has been linked :





Prepare Questions and Answers




jquery code:

$(function() {  

$('#answerdurationpicker').timepicker({
        timeFormat:'hh mm ss',
        hourGrid: 4,
        minuteGrid: 10,
        secondGrid: 10,
        showOn: 'button',
        buttonImage: "Images/clock.gif",
        buttonImageOnly: true
        });

        });
  1. I think you forgot to include jqueryui, which is a separate library from jquery. You should include it right after base jquery. You’ll have to download it and modify your code to something like this:

    
    
    
    
    
    Prepare Questions and Answers