I have an HTML form. I need to be able to change the background of a row in a table based on a the value of a field in another row.
Example:
Row A. Field #1 value=YES
Based on the YES vale
Row B. Background changes to yellow.
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.
There are a number of ways to go about doing what you want. Check out this fiddle for a simple example. Type Yes in the textbox to see the highlight change. With some more info in your question I can modify the example to make it more useful.
Say you had the following HTML:
And the following jQuery JavaScript:
And the following CSS: