 |
|

อยากให้ช่วยสอนวิธีเปลี่ยนเดือนจากภาษาอังกฤษให้เป็นภาษาไทยหน่อยครับ ผมทำแล้วมันไม่ได้ครับ
สคริปต์ครับ
Code (JavaScript)
<script language="JavaScript">
$(document).ready(function(){
var date = new Date();
$('#borrowdate').datepicker({
dayNamesMin: ['อา', 'จ', 'อ', 'พ', 'พฤ', 'ศ', 'ส'],
monthNamesShort: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],
dateFormat: 'yy-mm-dd', minDate:0,
inline: true,
onSelect: function(dateText, inst) {
date = $(this).datepicker('getDate'),
$("#returndate").datepicker("setDate", new Date(date.getFullYear(), date.getMonth(), date.getDate() + 7))
}
});
$("#returndate").datepicker({
dateFormat:'yy-mm-dd'
});
});
</script>
Tag : PHP, MySQL, JavaScript, Apache, Windows
|
|
 |
 |
 |
 |
Date :
2017-09-05 23:20:26 |
By :
1994253424141034 |
View :
2301 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |