I have a form like this: <table> <tr> <td> <p> <label> <input type="radio" name="1" value="1"> Yes</label> <br> <label> <input type="radio" name="1" value="0"> No</label> <br> </p> </td> <td> Question one... </td> </tr> </table> Code (markup): What am I trying to do is to have a separate color when nothing is selected and if they select "yes" or "no" the color should change. Is there any way to do that?