1
我正在使用Keith Wood jQuery Calendars Datepicker(不是他的jQuery Datepicker)。在一个页面中,我有许多日历datepicker输入(使用CSS作为选择器)。如何禁用其中之一?禁用Keith Wood jQuery日历Datepicker
// js
$('.calendar-input').calendarsPicker({
dateFormat: 'mm/dd/yyyy',
autoSize: true,
showTrigger: '<img src="calendar.gif">',
});
<!-- html -->
<input type="text" class="calendar-input" name="cal_1" id="cal_1">
<input type="text" class="calendar-input" name="cal_2" id="cal_2">
<input type="text" class="calendar-input" name="cal_3" id="cal_3">
让我们说,我想禁用cal_3
(用户不能选择或编辑从该对象)。如果我将cal_3
类更改为其他类,则对象大小将变大(因为我使用autoSize true)并且日历按钮不再显示。我想要的只是使尺寸与其他人一样,日历按钮仍然显示给它。
谢谢
ow ...我忘了那个基本属性。感谢Reigel:D – tsurahman 2010-09-23 09:59:44