มีตัวแปร ปฏิทิน 2 ตัวแปร คือ
#ARRIVE , #DEPART
ความต้องการของผมคือ เมื่อเลือกระบุวันที่ใน ตัวแปร #ARRIVE แล้ว ให้ เอาวันที่มา 1 หนึ่งวัน ทันที่
CODE เดิมที่ผมใช้อยู่คือ
<script type="text/javascript">
$(function(){
// á·Ã¡â¤éµ jquery
$("#ARRIVE" ).datepicker({
// dateFormat: 'dd-mm-yy',
dateFormat: 'yy-mm-dd',
minDate: 1,
numberOfMonths: 2,
changeMonth: true,
changeYear: true,
showButtonPanel: true
});
$("#DEPART").datepicker({
//dateFormat: 'dd-mm-yy',
dateFormat: 'yy-mm-dd',
minDate: 2,
numberOfMonths: 2,
changeMonth: true,
changeYear: true,
showButtonPanel: true
});
});
</script>