javascript - jQuery - datepicker - onblur - Stack Overflow

I'm using the jQuery datepicker where I have two textboxes (start dateend date). The user click

I'm using the jQuery datepicker where I have two textboxes (start 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'm using the jQuery datepicker where I have two textboxes (start 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.

Share Improve this question edited Mar 20, 2010 at 15:48 Daniel Vassallo 345k72 gold badges512 silver badges446 bronze badges asked Mar 20, 2010 at 15:45 d3020d3020 5373 gold badges7 silver badges16 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

I think you want the onselect event...

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745183632a4615534.html

相关推荐

  • javascript - jQuery - datepicker - onblur - Stack Overflow

    I'm using the jQuery datepicker where I have two textboxes (start dateend date). The user click

    9小时前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信