jQuery datepicker, onSelect won't work

前端 未结 8 1883
死守一世寂寞
死守一世寂寞 2020-12-05 04:09

I can\'t get onSelect working on my jQuery datepicker.

Heres my code:



        
8条回答
  •  囚心锁ツ
    2020-12-05 04:51

    The best solution is to set the datepicker defaults

    folows the code that I used

    $.datepicker.setDefaults({
        onSelect: function () {
            $(this).focus();
            $(this).nextAll('input, button, textarea, a').filter(':first').focus();
        }
    });
    

提交回复
热议问题