jquery - Trent Richardson Datetime Picker doesn't work extended function .datetimepicker() -
i think problem simple , perhaps not directly related component of richardson.
typeerror: $ (...). datetimepicker not function
jsfiddle: http://jsfiddle.net/bassvix/nua6v/
was added references of richardson´s sample page still not work. http://trentrichardson.com/examples/timepicker/ # basic_examples
copied source code 1 example.
html:
<div> <input class="hasdatepicker" name="slider_example_4" id="slider_example_4" value="" type="text"> </div>
scripts: (console.log display finded control)
console.log ($ ('# slider_example_4')); $ ('# slider_example_4'). datetimepicker({ controltype: 'select', timeformat: 'hh: mm tt' });
do not add: class="hasdatepicker"
input. done datetimepicker javascript itself.
your fiddle doesn't work because cannot pull js , css files trentrichardson.com remotely.
see fiddle: http://jsfiddle.net/mccannf/2kp56/1/
Comments
Post a Comment