Use dojo or jQuery to select a radioButton node, then use CSS filter expressions to set the td tag (parentNode dom node) to whatever color you want.
An example of using dojo:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Dojo selectors example</title> <script type="text/javascript"> var djConfig = { parseOnLoad: true, isDebug: true, locale: 'en-us' }; </script> <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.4.1/dojo/dojo.xd.js"></script> <script type="text/javascript"> dojo.addOnLoad(function() { </script> <style type="text/css"> .red { background-color : red; } .white { background-color : white; } </style> </head> <body> <form id="form1"> <table> <tr> <td><input type="radio" value="" /></td> </tr> <tr> <td><input type="radio" value="" /></td> </tr> <tr> <td><input type="radio" value="" /></td> </tr> </table> </form> </body> </html>
I will leave it to you to fix the behavior of the radio ...
source share