-
Change Combo Box Value
Hi,
I would like to click a checkbox in a datagrid and change a value in a combo box, via client side script. I am already highlighting the row's color. Here is the code for that:
Code:
<script language="javascript">
function HighlightRow(chkB)
{
var xState=chkB.checked;
if(xState)
{
chkB.parentElement.parentElement.style.backgroundColor='red';
chkB.parentElement.parentElement.style.color='white';
}
else
{
chkB.parentElement.parentElement.style.backgroundColor='#FFF7E7';
chkB.parentElement.parentElement.style.color='black';
}
}
</script>
<ItemTemplate>
<asp:CheckBox ID="cOwn" Runat="server" AutoPostBack="False" onclick="javascript:HighlightRow(this);"></asp:CheckBox>
</ItemTemplate>
-
-