당신은 여기
Zebra_Datepicker, a lightweight datepicker jQuery plugin 어떤 answe 예입니다 시도해 볼 수도를 그것은 다음과 같습니다 두 질문에 모두 답하십시오. 당신과 같이, 두 개의 텍스트 상자, 시작 날짜 하나와 종료 날짜와 하나가 있다고 가정 : 자바 스크립트 파일에 지금
<input type="text" name="start_date" id="start_date">
<input type="text" name="end_date" id="end_date">
, 당신이 jQuery를, Zebra_Datepicker 및 관련 CSS 파일을 포함 한 후, 다음과 같이 사용하십시오.
$(document).ready(function() {
$('#start_date').Zebra_DatePicker({
direction: true, // future-only calendar, starting today
format: 'YYYY-MM-DD', // the format you want
pair: $('#end_date') // we pair the two elements
});
$('#end_date').Zebra_DatePicker({
direction: true, // future-only calendar, starting today
// (unless a date is selected in the other
// element when the date picker will become
// future-only, starting that particular date)
format: 'YYYY-MM-DD' // the format you want
});
});