最近在网上找了个datepicker.js,就是可以显示多个日历框的控件,发现两个问题,
$('#signstime').DatePicker({
date: $('#signstime').val(),
current: $('#signstime').val(),
starts: 1,
calendars: 2,
onBeforeShow: function () {
if ($('#signstime').val() != "") {
$('#signstime').DatePickerSetDate($('#signstime').val(), true);
}
},
onChange: function (formated, dates) {
$('#signstime').val(formated);
$('#signstime').DatePickerHide();
}
});
我是点文本框它自动出来的,也就是没有任何辅助的按钮或图标,用onChange获得值,选年时就用不了.还有一个就是不能使用for或者each来添加文本框,如果页面中有很多文本框,会生成很多JS代码了,
呼啦一阵风
米琪卡哇伊
倚天杖
呼如林
大话西游666
相关分类