开发者

Prevent jQuery Datepicker from closing by clicking anywhere

开发者 https://www.devze.com 2023-01-15 10:42 出处:网络
How to limit the Date开发者_JS百科picker to be closed only by clicking on the input field ?assuming its the UI datepicker plugin

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

精彩评论

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