Automatically Expand Time Slots on Page Load?

Support forumAutomatically Expand Time Slots on Page Load?
karpar asked 7 years ago
All of the appointment situations I'm working with are a single worker at a single location on a single day. Since there's only ever a single date to choose from, would it be possible to auto-select that date so that the available time slots are immediately displayed when the user arrives on the page displaying the calendar? I tried adding 
jQuery('.free').click();
but that's not working. Thanks!
1 Answers
Nikola Loncar Staff answered 7 years ago

Hi,
ok so you want to select first day that have free slots when user opens that page. I can add callback on plugin load so you will then add similar code but like this :

jQuery('.free:first').click();

Best regards,
Nikola

karpar replied 7 years ago

That would be great, thanks!