how to change the color of row ?
Posted: Thu Feb 10, 2005 7:12 pm
Code: Select all
<html>
<head>
<script language="javascript">
function checkAll(){
for (var i=0;i<document.formsї0].elements.length;i++)
{
var e=document.formsї0].elementsїi];
if ((e.name != 'allbox') && (e.type=='checkbox'))
{
e.checked=document.formsї0].allbox.checked;
}
}
}
</script>
</head>
<body>
<form>
<table>
<input type="checkbox" value="on" name="allbox" onclick="checkAll();"/> Check all<br />
<h3>Fruit</h3>
<tr><td><input type="checkbox" value="on" name="apples" /> Apples<br/></td>
</tr>
<tr><td>
<input type="checkbox" value="on" name="oranges" /> Oranges<br/>
</td>
</tr>
<tr><td>
<input type="checkbox" value="on" name="bananas" /> Bananas<br/>
</td>
</tr>
</table>
</form>
</body>
</html>what i want is : when a checkbox is checked, the color of the entire row changed to some other color
any help/hint plz.