简体   繁体   中英

Migrate bootstrap-datepicker to jQuery UI datepicker

In bootstrap-datepicker http://www.eyecon.ro/bootstrap-datepicker/ this work:

$('#form_field').datepicker().on('changeDate', calc_func);

but in jQuery UI not working. How to fix/change it? changeDate is event in bootstrap-datepicker

$(".date").datepicker({
    onSelect: function() {
        calc_func();
    }
});

when you select or change date in jQuery calender then the function will be called

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM