jQuery Datepicker: Prevent closing picker when clicking a date

后端 未结 9 2218
南方客
南方客 2020-11-29 08:16

Hi fellow stackoverflow:ers,

I\'m using the jQuery Datepicker plugin, together with Martin Milesich Timepicker plugin. Everything works great, except for the fact th

9条回答
  •  感动是毒
    2020-11-29 09:08

    rather than changing the source it's best to use the existing events

    onSelect: function() {
        $(this).data('datepicker').inline = true;                               
    },
    onClose: function() {
        $(this).data('datepicker').inline = false;
    }
    

提交回复
热议问题