Problems with Trent Richardson and the pet datetimepicker

I am trying to implement a Trent timepicker, but I cannot do it. I am testing it in Chrome, Firefox and IE9.

I have already imported jQuery and jQuery UI. The only common mistake I could find was that JQuery UI was not a full version (no slides), but that is not my business. In any case, the following errors

Cannot set property 'formatTime' of undefined (line ...)
$.datepicker.formatTime = function(format, time, options) { (this is the line)

Cannot call method '_newInst' of undefined
$t.datepicker($.timepicker._newInst($t, o)._defaults);

I would like to thank any help, I am really new to jQuery and I really don't understand.

+5
source share
5 answers

. , , jQuery jQuery UI ( jQuery ). , .

+1

, :

<input type="text" name="pickuptime" id="pickuptime" value=""  /> 
$('#pickuptime').datetimepicker( { } );

:

<input type="text" name="pickuptime" id="pickuptime" value=""  /> 
$('#pickuptime').datetimepicker( );
+1

jquery-ui , , "Datepicker". jquery-ui js . .

+1

. , javascript timepicker jQuery jQuery. timepicker $.datepicker, jQuery UI, .

Ruby on Rails, javascript , , javascript. js html , ! .

0

, jquery datepicker

- .

enter image description here

try this link before choosing date and after jquery link

<script type="text/javascript" 
src="http://code.jquery.com/ui/1.10.3/jquery-ui.js">
0
source

All Articles