let me start with my form:
I want to display only one line from the three below selectable options, based on selected stuff. How to do that?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a modified version of your fiddle that should do what you want: http://jsfiddle.net/JZNMy/
The key points are that I reference the row showing the message to the selected option using the value on the option plus ‘-message’ as the id of the message row. Then, I bound to the
.changeevent of the select box, which gets the currently selected value, hides all of the messages, then shows the related one.EDIT: I updated the fiddle link with one that automatically triggers the
changeevent on the select box to make sure one of the messages is displayed.