I’m trying to find the best way to display text corresponding to specific options in a select widget. I’m thinking I can just populate multiple divs with text, each div corresponding to an option in a select widget and initially setting them them with “display: none”. Then with Jquery I would unset a specific div to “display: none”, depending on which option is selected. However, I’m new to Jquery and am not sure where to start. Can someone point me in the right direction and/or give me suggestions on a better way to do this?
I’m trying to find the best way to display text corresponding to specific options
Share
I usually solve the problem like this
And then I’ll have this piece of jquery code execute
These are just examples. You can generalise as much as you like…