สอบถามเรื่อง Jquery เกี่ยวกับวันที่

เริ่มโดย deknakhon, 22 สิงหาคม 2011, 20:30:20

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

deknakhon

มีตัวแปร ปฏิทิน 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>




รับพัฒนาโปรแกรม PHP Mysql
รับออกแบบระบบโปรแกรม
รับวางระบบเครือข่ายคอมพิวเตอร์