Question: I am designing a website on the Wix website. I have a dropdown form that contains five options ( these options represent the number of
I am designing a website on the Wix website. I have a dropdown form that contains five options these options represent the number of rooms the user can reserve The first option is one room, the second option is two rooms, the third option is three rooms, the fourth option is four rooms, and the fifth is five rooms.
The maximum number of rooms a user can book is five rooms.
For example: If the user chooses the second option, he is reserving two rooms, which means that he has three rooms remaining that he can reserve for everyone, not local memory
How can I do this and make the maximum number that a user can reserve is only five rooms, even if he tries to rebook from another user?
I want JavaScript code
Step by Step Solution
★★★★★
3.33 Rating (153 Votes )
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
For your requirement you need to maintain a global counter that stores the total number of rooms boo... View full answer
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
