jQuery的datepickers我已經添加到頁面按預期方式工作在IE 9和Firefox 18,但在谷歌採摘日期的Chrome 24jQuery的日期選擇器不會在谷歌瀏覽器關閉
這裏後不關閉是我使用jQuery代碼:
$(function() {
$("#fromCheck").datepicker({
defaultDate: "-1w",
maxDate: "+0",
changeMonth: true,
numberOfMonths: 1,
showButtonPanel: false,
onClose: function(selectedDate) {
$("#toCheck").datepicker("option", "minDate", selectedDate || "-1w");
}
});
$("#toCheck").datepicker({
defaultDate: "+0",
maxDate: "+0",
changeMonth: true,
numberOfMonths: 1,
showButtonPanel: false,
onClose: function(selectedDate) {
$("#fromCheck").datepicker("option", "maxDate", selectedDate || "+0");
}
});
$("#fromCard").datepicker({
defaultDate: "-1w",
maxDate: "+0",
changeMonth: true,
numberOfMonths: 1,
showButtonPanel: false,
onClose: function(selectedDate) {
$("#toCard").datepicker("option", "minDate", selectedDate || "-1w");
}
});
$("#toCard").datepicker({
defaultDate: "+0",
maxDate: "+0",
changeMonth: true,
numberOfMonths: 1,
showButtonPanel: false,
onClose: function(selectedDate) {
$("#fromCard").datepicker("option", "maxDate", selectedDate || "+0");
}
});
});
這裏是一個鏈接到演示頁:
http://www.tempuspayment.com/paymentmate/tests/apm/
在管線144你有'的onfocus = 「值='」'。那應該做什麼? – j08691
「訪問被拒絕」 – Archer
進行了更改。謝謝。但datepicker仍然無法在Google Chrome中關閉。 – user1987851