Jea*_*amp 5 internet-explorer jquery-ui datepicker internet-explorer-8
点击IE 8中的日期后,jQuery的datepicker会继续重新打开,即使在他们的演示页面上也是如此:
http://jqueryui.com/demos/datepicker/
有谁知道如何解决这一问题?我不知道演示页面,但我遇到了与jQuery 1.6.2和jQuery UI 1.8.15完全相同的问题.
此外,设置minDate和maxDate选项似乎在IE 8中没有任何影响.以上似乎也适用于IE 7.
以下为我解决了这个问题(使用jQuery 1.7.2/jQueryUI 1.8.20)
var $input = $('#date');
$input.datepicker({
/*
* your other settings here
*/
onSelect : function() { $input.blur(); },
onClose : function() { $input.change(); }
});
$input.on('change paste', function(evt) {
// process new date input here
});
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
5814 次 |
最近记录: |