how i can change the color of row after selecting the checkbox
Hi samiah,
I reccomend writing a javascript function for this. You can then call the function during the onclick of the check box:
[html]
<input type="checkbox" id="check1" value="yes" onclick="setColour(this.id, this.value);">
[/html]
The javascript function would be something like:
-
function setColour(elementID, elementValue)
-
{
-
if(elementValue == "yes")
-
{
-
var colour = "red" ;
-
}
-
else
-
{
-
var colour = "blue" ;
-
}
-
document.getElementByID[elementID].innerHTML.colour = colour;
-
}
-
This is a little rough and you'd maybe want to set the colour better using RGB or Hex value. Also I'm not sure what element you want to change but this should at least give you a rough outline of how to use javascript to achieve what you are after.
Have a go and if you get stuck post back any code you have and I'll try to help some more.
Cheers
nathj