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) { ... }
});
精彩评论