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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -