|
|
|
ตัดแสดงผลวันที่ ออกจาก Jquery Datepicker ยังไงครับ |
|
|
|
|
|
|
|
html
Code (PHP)
<label for="myDate">Date :</label>
<input name="myDate" class="monthYearPicker" />
css
Code (PHP)
.ui-datepicker-calendar {
display: none;
}
java script
Code (PHP)
$(function() {
$('.monthYearPicker').datepicker({
changeMonth: true,
changeYear: true,
showButtonPanel: true,
dateFormat: 'mm-yy'
}).focus(function() {
var thisCalendar = $(this);
$('.ui-datepicker-calendar').detach();
$('.ui-datepicker-close').click(function() {
var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
thisCalendar.datepicker('setDate', new Date(year, month, 1));
});
});
});
|
|
|
|
|
Date :
2016-06-18 08:47:39 |
By :
fossil31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jQuery
Code (PHP)
$( ".datepicker2" ).show();
|
|
|
|
|
Date :
2016-06-20 08:48:17 |
By :
fossil31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|