I'm making simple reservation system for booking cinema tickets.
I have a form, when you can choose Movie A-E, date, when you would like to go in the cinema and hour. Simple three options and then Submit button -> I save those values in the LocalStorage so I can use them later.
After that I programmed table -> seats in the cinema. You can click on the table cells -> colors are changing from white(open seat) to green(chose) and after you click on Reserve, it changes to RED(booked). Table works as I want.
My problem is, that I want to generate identical table with all the functions for every combination of Movie, Date and Time selected.
For example ->
I select Movie A, 12.01.2021, 10:00 am, click on the button ->
empty table generates (with my functions to reserve seats and so on.)
I select Movie A, 12.01.2021, 12:00 am, click on the button ->
empty table generates (with my functions to reserve seats and so on.)
Every table is saved and when I click back on the combination, it pops out.
I don't provide any code, because I think it would not be useful, because I am stuck in the beginning of the problem.
This is how does it look.
how does it look
Thank you vey much,
DG
question from:
https://stackoverflow.com/questions/65643633/how-to-generate-different-table-for-different-combination-of-options-in-the-form 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…