jquery close datepicker when input lose focus

后端 未结 5 652
星月不相逢
星月不相逢 2020-12-06 16:41

I\'m using datepicker inside my input , my last field is the datepicker input , after validating it i want to set focus on another input inside my form , but the problem is

5条回答
  •  一个人的身影
    2020-12-06 17:33

    This worked for me:

    $("#datepickerTo").datepicker({
        onSelect: function () {
            $(this).off( "focus" );
        }        
    });
    

提交回复
热议问题