Does anyone know of a simple example of showing / hiding a div when one of two select dropdown options are selected? I’d like to keep it simple and not have to use plugins with the exception of jquery which is already loading.
Share
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.
you could use the following function which shows the passed element if the dropdown have the values 12 and 22 (you can change it to whatever you need):
then in jQuery you can write the following:
Demo: http://jsfiddle.net/ERS9D/