Title: day range javascript not working
Last modified: April 1, 2025

---

# day range javascript not working

 *  Resolved [missmikado](https://wordpress.org/support/users/missmikado/)
 * (@missmikado)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/day-range-javascript-not-working/)
 * Hi,
 * i set up the form with elementor html block like this:
 *     ```wp-block-code
       [booking resource_id=1]<script type="text/javascript">function wpbc_set_custom_days_selection4(){   var wpbc_resource_id = 1;  wpbc_cal_ready_days_select__range( wpbc_resource_id, 3, 100, [], [-1] );}( function() { if ( document.readyState === 'loading' ){ document.addEventListener( 'DOMContentLoaded', wpbc_set_custom_days_selection4); } else { wpbc_set_custom_days_selection4(); } }() );</script>
       ```
   
 * I can select the start and end days in the calendar, but when I try to send the
   form there is an error below:
 * > These dates and times in this calendar are already booked or unavailable.
   > Please
   > choose alternative date(s), times, or adjust the number of slots booked.
   > **Booking can not be saved in this date , number of available (single or child)
   > booking resource(s) (0) less than required (1).**
   > `{"":[]}`
 * So whats wrong with the code? All the selected days are available.
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fday-range-javascript-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * (@wpdevelop)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/day-range-javascript-not-working/#post-18394314)
 * Hello.
 * First of all, please note, such range days selection mode with 2 mouse clicks(
   which you try to activate) available only in the Booking Calendar Business Small
   or higher versions. In Free version such dates selection does not supported.
 * Check more about this feature here: [https://wpbookingcalendar.com/overview/#range-days-selection](https://wpbookingcalendar.com/overview/#range-days-selection)
   
   Test it here [https://bm.wpbookingcalendar.com/](https://bm.wpbookingcalendar.com/)
 * Please note, this forum is only about the support of Booking Calendar Free version.
   If you will have any questions about the paid version, then contact here [https://wpbookingcalendar.com/contact/](https://wpbookingcalendar.com/contact/)
 * Kind Regards.
 *  Thread Starter [missmikado](https://wordpress.org/support/users/missmikado/)
 * (@missmikado)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/day-range-javascript-not-working/#post-18394317)
 * Oh, thank you, i didn’t recognize this limitation in the FAQs…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘day range javascript not working’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [missmikado](https://wordpress.org/support/users/missmikado/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/day-range-javascript-not-working/#post-18394317)
 * Status: resolved