kralco626
kralco626

Reputation: 8624

Jquery UI DatePicker not working - jsfiddle included

you will have to expand the "run" pane so you can see the whole date picker.

Pick a date with the first picker. Then go to pick a date with the second. It's trying to prevent you from picking a later date rather than an earlier one. Funny thing is I copied the demo directly, and the demo works....

http://jsfiddle.net/kralco626/KKhZg/3/

Also does not work using 1.5.1 which is the version used in the demo http://jsfiddle.net/kralco626/KKhZg/5/

Version that uses the same exact script and link calls for jquery as the demo. still works wrong. http://jsfiddle.net/kralco626/KKhZg/6/

Upvotes: 0

Views: 4319

Answers (1)

Josh Mein
Josh Mein

Reputation: 28645

I found the problem. You also need to change the from in the following line to your new ID:

var option = this.id == "from" ? "minDate" : "maxDate",

var option = this.id == "fromDate" ? "minDate" : "maxDate",

Upvotes: 1

Related Questions