I am designing a travel website and need to add checkboxes which when selected shows a value.
It’s like a tour cost calculator. For instance, when the user selects “Paris” it shows the destinations to select and the user can select the checkboxes, and it shows the price on a div block.
When the user selects multiple destinations, it shows the total price of all the selected destinations in the same div.
Is it possible? How do I create something like this?
@Arialwal you’ll probably have to use some jQuery to accomplish this. You can use the checkboxes being checked / unchecked to trigger a function that changes content on the page such as the total cost and available destinations.
Without further understanding of what you are trying to accomplish or an example I’m not sure how much more help I can offer. Something like a drawing or example that someone else has created would be useful.
I looked at it, but is doesn’t work. I need to sum up the value of each destination and show it in a different section on the same page. Ideally below the form.