0
我正在使用Higchart圖與引導日期選擇器。我有一個日期的texbox。當我點擊選擇日期的tectbox時,鍵盤打開並顯示我之前選擇的某些日期。我的腳本在這裏:引導移動設備鍵盤顯示
<script type="text/javascript">
$(document).ready(function() {
$('#date').datepicker({ //# ile id üzerinden yaparsanız yanlızca bir input çalışır
format: "yyyy-mm-dd", //dd-mm-yyyy
autoclose: true,
weekStart: 1,
"disableTouchKeyboard": true
}).load('show', function() {
var today = new Date();
var curr_date = today.getDate();
var curr_month = today.getMonth()+1;
var curr_year = today.getFullYear();
var currentDate = curr_year + "-" + curr_month + "-" + curr_date;
$(this).val(currentDate);
});
});
</script>
我在哪裏做錯了?
它不起作用。 – catcher
我添加我的輸入只讀,我的問題解決了 – catcher
但這會讓您的輸入框灰色禁用 –