JQuery - datepicker - onblur

I am using jQuery datepicker where I have two text fields (start date / end date). The user clicks on the corresponding text box and a calendar appears. This is normal.

What do I need to do when the user says click on the start date in the text box and select the date. Then I need the onblur event.

Where can I set this onblur event for a calendar control after a date has been selected? I tried in the actual text box, but it is not, because it happens before the actual date is selected from the calendar control.

+3
source share
1 answer

, onselect...

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

Source: https://habr.com/ru/post/1737822/


All Articles