开发者

Jquery UI DatePicker not working - jsfiddle included

开发者 https://www.devze.com 2023-03-05 12:53 出处:网络
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 la

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://开发者_如何学Pythonjsfiddle.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/


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",
0

精彩评论

暂无评论...
验证码 换一张
取 消