How would you write a script to disable a select if you have two selects (both with ids) and an option in the first select is selected.
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.
Since you have tagged the question with jQuery, I’ll give you an idea of how to do it using jQuery:
Note that the above assumes you want to enable the second select again if a different option was selected. Here’s a working example.