Viewing 1 replies (of 1 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.

    Please try to use code like this for clearing selected dates in calendar:

    
            var inst = jQuery.datepick._getInst( jQuery( 'div[id^="calendar_booking"]' ).get(0) );
            inst.dates = [];
            jQuery.datepick._notifyChange(inst);
            jQuery.datepick._adjustInstDate(inst);
            jQuery.datepick._showDate(inst);
            jQuery.datepick._updateDatepick(inst);
            jQuery('textarea[id^="date_booking"]').val('');
    

    Please note, you can use this code at the page, where inserted one booking form for specific booking resource.

    Kind Regards.

Viewing 1 replies (of 1 total)

The topic ‘Reset button’ is closed to new replies.