I am using jquery datepicker .I want to prevent close functionality when clicking outside of calendar dialog box.
url:-http://jqueryui.com/datepicker/
Thanks
In jquery.ui.datepicker.js
this is the code for hiding calendar when clicking outside:
...
if (!$.datepicker.initialized) {
$(document).mousedown($.datepicker._checkExternalClick);
$.datepicker.initialized = true;
}
...
So you can remove this event handler by using:
$(document).unbind('mousedown', $.datepicker._checkExternalClick);
If you create the datapicker on a div rather then an input box it will stay open all the time.
Is this what you want or should it be clicked upon to open and then stay open forever?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With