I have 4 forms.In that, 2nd form will have one datepicker field.If I moved to 3rd form and when I came back to 2nd form the date picker is not working.
The datepicker code is
jQuery(document).ready(function() {
jQuery("#dob").datepicker({ maxDate: "-18Y"});
jQuery('.fa-calendar').click(function() {
jQuery("#dob").focus();
});
});
Make sure that form events are not clearing the events and also check that form 3 does not have element with same ID