开发者

jQuery datepicker: manual firing of onChangeMonthYear()

开发者 https://www.devze.com 2023-01-10 15:24 出处:网络
I\'ve this function: $(\'#picker\').datepicker({ // ... onSelect开发者_如何学Python: function(currDate){

I've this function:

$('#picker').datepicker({
    // ...
    onSelect开发者_如何学Python: function(currDate){

    }
});

I want to fire the function onSelect() manually, but $('#picker').datepicker.onSelect(); doesn't work. How to fire it?


You can get the callback function by doing datepicker("option","onSelect"). I set up an example of how you can use it here: http://jsfiddle.net/KjquJ/

0

精彩评论

暂无评论...
验证码 换一张
取 消