Skip to content
Advertisement

Using radio box selection to display multiple DIVs

I need to be able to use three radio buttons to determine which P’s display on a page. All items are queried from a database so there is no fixed number. I’d like to stick with javascript if possible. All is written inside PHP code

Tried using the following:

JavaScript

Then each P will have the option of 6 prices that should only be visible if the corresponding radio options are selected:

JavaScript

And here are the radio boxes:

JavaScript

Advertisement

Answer

Something like this?

JSFiddle

JavaScript

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement