0

I used to have a working datetimepicker on my website, but now it was stopped working. I found the js I was referencing was taken down. I went to the page and downloaded the js and stored it locally on my server.

Here is where I get the js from:

http://trentrichardson.com/examples/timepicker/

I import jquery and jquery ui before datetimepicker:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

The error I am getting is:

 Uncaught TypeError: Object [object Object] has no method 'prop' datetimepicker.js:387 

Should this method come from the jquery-ui and how can I fix this?

Stagleton
  • 1,060
  • 3
  • 11
  • 35

2 Answers2

6

Try using latest version of jQuery.js and jQueryUI.js

The reason is .prop() method added only from jQuery1.6 but you are using 1.5

Murali Murugesan
  • 22,423
  • 17
  • 73
  • 120
0

Should this method come from the jquery-ui

No. It comes from the script available at the page you linked to.

and how can I fix this?

Download and include that script

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335