开发者

Prevent jQuery Datepicker from closing by clicking anywhere

How to limit the Date开发者_JS百科picker to be closed only by clicking on the input field ?


assuming its the UI datepicker plugin

see here: http://forum.jquery.com/topic/jquery-datepicker-plugin-how-to-prevent-the-datepicker-calendar-popup-from-closing

and here: jQuery Datepicker: Prevent closing picker when clicking a date


Just override _checkExternalClick function like this:

jQuery.datepicker._checkExternalClick = function() {};
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜