Title: Reset button
Last modified: June 8, 2017

---

# Reset button

 *  Resolved [pascaloldevelthuis](https://wordpress.org/support/users/pascaloldevelthuis/)
 * (@pascaloldevelthuis)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/reset-button-8/)
 * Hello WPDevelop,
 * Do you have a JavaScript code that resets the chosen calendar dates on the front-
   end?

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * (@wpdevelop)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/reset-button-8/#post-9210262)
 * 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.

 * ![](https://ps.w.org/booking/assets/icon-256x256.gif?rev=3335907)
 * [Booking Calendar](https://wordpress.org/plugins/booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking/)
 * [Active Topics](https://wordpress.org/support/plugin/booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/reset-button-8/#post-9210262)
 * Status: resolved