Registration

Registration

//check if the datepicker is defined. Events Planner will only load the functions on the registraion page
//if (typeof jQuery().datepicker === 'function') {// works also
if (jQuery().datepicker instanceof Function) {
create_datepicker('.datepicker');
}