Подскажите как заменить фон у формы? Пробую так: HTML: <SCRIPT type="text/javascript"> function color_controle () { var comname = document.table.stars.value; if (comname == '5'){document.getElementById('stars').style.background = '999999'} } </script> <select id="stars" style="background-color: FFFFFF; width:40" name="stars" onChange="color_controle()"> <option value=1>+5</option> <option value=2>+4</option> <option value=3>+3</option> <option value=4>+2</option> <option value=5>+1</option> <option selected value=6>0</option> <option value=7>-1</option> <option value=8>-2</option> <option value=9>-3</option> <option value=10>-4</option> <option value=10>-5</option> </select></td>
HTML: <script type="text/javascript"> function color_controle (that){ if (that.value == 5) that.style.background = '#999999' } </script> <select id="stars" style="background-color: #FFFFFF; width:40" name="stars" onChange="color_controle(this)">