开发者

jQuery - datepicker - onblur

I'm using the jQuery datepicker where I have two textboxes (st开发者_开发知识库art date / end date). The user clicks in a respective textbox and the calendar shows up. That is OK.

What I need to do is when the user say, clicks in the start date textbox and picks a date. I need an onblur event to be triggered then.

Where do I set that onblur event for the calendar control after a date has been selected? I tried in the actual textbox but that's not right because that happens before an actual date is picked from the calendar control.


I think you want the onselect event...

$('.selector').datepicker({
   onSelect: function(dateText, inst) { ... }
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜