I have a form for a client where I need a certain amount of passengers to display a certain amount vehicle types. I'm holding a brief demo here: http://www.webspinning.co.uk/demos/lynx-form/ . I want the end result to be exactly the same but I can't figure out how to do it without using different divs, I want it so that it hides and shows each option.
The only way I can think of (with a single list) is to apply and remove classes (for visibility/display) based on the number of passengers or, alternatively, change css properties of specific classes based on the selected number.
All with JS, of course, but that's outside my comfort zone.
I'm holding a brief demo here: http://www.webspinning.co.uk/demos/lynx-form/ . I want the end result to be exactly the same but I can't figure out how to do it without using different divs, I want it so that it hides and shows each option.
Here is the code:
HTML:
CSS:
Any help will be really appreciated, thank you.
All with JS, of course, but that's outside my comfort zone.