I have a Ruby On Rails application.
I want to enable the drop down list only if the check box is enabled.
Please let me know a way to do this.
Thanks,
Ramya.
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.
Do it with jQuery. Add a
clickhandler to your element, and do your checks inside that. Here’s an example of checking the checkbox: http://jquery-howto.blogspot.com/2008/12/how-to-check-if-checkbox-is-checked.htmlEDIT: code could be like this: