How to disable the calender popup from bootstrap date picker using jquery??
$("#id").val('').attr('disabled',true).trigger("liszt:updated");
is not working also .prop is not working..
There are several options for this in the official documentation.
At: http://bootstrap-datepicker.readthedocs.io/en/latest/options.html
Try this:
$("#id").datepicker({ enableOnReadonly: false });
(where #id
is the selector for your date picker, and the enableOnReadonly: false
key value pair has just been added into the datepicker
options JSON object in the param)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.