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 badges1 Answer
Reset to default 5I think you want the onselect event...
$('.selector').datepicker({
onSelect: function(dateText, inst) { ... }
});
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745183632a4615534.html
评论列表(0条)