vanilla-calendar | A calendar written in JavaScript with zero dependencies | Calendar library
kandi X-RAY | vanilla-calendar Summary
kandi X-RAY | vanilla-calendar Summary
A calendar written in JavaScript with zero dependencies
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vanilla-calendar
vanilla-calendar Key Features
vanilla-calendar Examples and Code Snippets
Community Discussions
Trending Discussions on vanilla-calendar
QUESTION
I am trying to build an appointment booking website using express, ejs and MongoDB. When request is sent to '/booking', book page is displayed with all the details of the doctor . For every doctor on clicking on book button, a form is added dynamically. A js event is added to the book button so that when the user clicks on that button, that particular doctor id can be accessed and sent back to server using ajax.My basic idea i was to the value of 'i' when the button is clicked and get the doctor_id value at that particular 'i' index from doctprs array. But ejs will get loaded before javascript so I am not able to do that. Please help me get the value of the selected doctor_id.
Update Inside the form in the div id="myCalendar" I am displaying a calendar from which a user can select the date. I want to get the doctor_id which the user selected and then send it using a axios request to the server and then get the time slots of that particular doctor on that particular date and display it in the form so that the user can select a particular time slot and book an appointment on that day for that calendar.
app.js
...ANSWER
Answered 2021-Feb-02 at 14:10You can add the onclick
event to every button individually like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vanilla-calendar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page