一款功能丰富的日期选择器插件,不仅适用多种表单类型,还可以自定义回调,非常的实用。
可运用在input/select等表单元素使用,还可进行日期区间范围选取,以及设置弹出层点选特效,非常的灵活丰富。
<script type="text/javascript"> $.ctcCalendar({ inputType:"text", dateSelector:"#one-date", expanderSelector:"#one-calendar" }); </script>
September 2010 October 2010 November 2010 December 2010 January 2011 February 2011 March 2011 April 2011 May 2011 June 2011 July 2011 August 2011 September 2011 October 2011 November 2011 December 2011 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<script type="text/javascript"> $.ctcCalendar({ inputType:"dropdown", monthSelector:"#two-month", daySelector:"#two-day", expanderSelector:"#two-calendar" }); </script>
September 2010 October 2010 November 2010 December 2010 January 2011 February 2011 March 2011 April 2011 May 2011 June 2011 July 2011 August 2011 September 2011 October 2011 November 2011 December 2011 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 September 2010 October 2010 November 2010 December 2010 January 2011 February 2011 March 2011 April 2011 May 2011 June 2011 July 2011 August 2011 September 2011 October 2011 November 2011 December 2011 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<script type="text/javascript"> $.ctcCalendar({ calendarCount:2, inputType:"dropdown", monthSelector:"#three-double-month", daySelector:"#three-double-day", expanderSelector:"#three-double-calendar" }); $.ctcCalendar({ calendarCount:3, inputType:"dropdown", monthSelector:"#three-triple-month", daySelector:"#three-triple-day", expanderSelector:"#three-triple-calendar" }); </script>
<script type="text/javascript"> $.ctcCalendar({ calendarCount:3, inputType:"dropdown", monthSelector:"#four-begin-month", daySelector:"#four-begin-day", expanderSelector:"#four-begin-calendar", allowRange:true, endMonthSelector:"#four-end-month", endDaySelector:"#four-end-day", endExpanderSelector:"#four-end-calendar" }); </script>
<script type="text/javascript"> $.ctcCalendar({ inputType:"text", dateSelector:"#five-begin-date", expanderSelector:"#five-begin-calendar", endDateSelector:"#five-end-date", endExpanderSelector:"#five-end-calendar" }); </script>
<script type="text/javascript"> $.ctcCalendar({ inputType:"text", dateSelector:"#six-df1-begin-date", expanderSelector:"#six-df1-begin-calendar", endDateSelector:"#six-df1-end-date", endExpanderSelector:"#six-df1-end-calendar", allowRange:true, dateFormat:1 }); $.ctcCalendar({ inputType:"text", dateSelector:"#six-df2-begin-date", expanderSelector:"#six-df2-begin-calendar", endDateSelector:"#six-df2-end-date", endExpanderSelector:"#six-df2-end-calendar", allowRange:true, dateFormat:2 }); $.ctcCalendar({ inputType:"text", dateSelector:"#six-df3-begin-date", expanderSelector:"#six-df3-begin-calendar", endDateSelector:"#six-df3-end-date", endExpanderSelector:"#six-df3-end-calendar", allowRange:true, dateFormat:3 }); </script>
<script type="text/javascript"> $.ctcCalendar({ inputType:"text", dateSelector:"#seven-inline-date", expanderSelector:"#seven-inline-calendar", calendarDisplay:"inline" }); $.ctcCalendar({ inputType:"text", dateSelector:"#seven-modal-date", expanderSelector:"#seven-modal-calendar", calendarDisplay:"modal" }); $.ctcCalendar({ inputType:"text", dateSelector:"#seven-full-date", expanderSelector:"#seven-full-calendar", calendarDisplay:"full" }); </script>