How to open and close the modal using script
5 years ago.
Hi there
I'm using the methods of href'ing the modal ID to open the modal. And I can close the modal, but how can I show the modal using JS?
I'm trying to inject the times from the scheduler "onTimeRangeSelected" event into my modal but I cannot work out the correct syntax to merely show it!
Any help please?
I'm using JQuery css to close the modal, like $("#modalNewBooking").hide(); <-- hope this is okay? It works
Thanks, Chris
DayPilot