autoclose datepicker on doctor appointment form