jquery-ui/demos/functional/templates/ui.datepicker.two.html
2008-09-20 17:42:04 +00:00

7 lines
358 B
HTML

<input type="text" size="10" value="" id="startDate"/> to <input type="text" size="10" value="" id="endDate"/>
<script type="text/javascript">
function customRange(input) {
return {minDate: (input.id == "endDate" ? $("#startDate").datepicker("getDate") : null),
maxDate: (input.id == "startDate" ? $("#endDate").datepicker("getDate") : null)};
}
</script>