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() {};
精彩评论