Hi,
I am using a javascript function for hiding a particular html row while clicking the check box.
Each row corresponds to different checkbox.
The code I have used is:
[CODE=javascript]<asp:Checkbox ID="chekID_One " onchange="hide_ Ctrls('one')" Checked="false" runat="server"> </asp:Checkbox>
<asp:Checkbox ID="chekID_Two " onchange="hide_ Ctrls('two')" Checked="false" runat="server"> </asp:Checkbox>
<script language="JavaS cript" type="Text/Javascript">
if(value == 'one')
{
var getOne = document.getEle mentById('chekI D_One').checked ;
if(getOne == true)
{
document.getEle mentById('trOne ').style.visibi lity = "collapse";
}
else
{
document.getEle mentById('trOne ').style.visibi lity = "visible";
}
}
</script>
[/CODE]
This code is working fine in firefox. But not in IE and Safari.
Can anyone tell why is it so???
Plzzz help me...
I am using a javascript function for hiding a particular html row while clicking the check box.
Each row corresponds to different checkbox.
The code I have used is:
[CODE=javascript]<asp:Checkbox ID="chekID_One " onchange="hide_ Ctrls('one')" Checked="false" runat="server"> </asp:Checkbox>
<asp:Checkbox ID="chekID_Two " onchange="hide_ Ctrls('two')" Checked="false" runat="server"> </asp:Checkbox>
<script language="JavaS cript" type="Text/Javascript">
if(value == 'one')
{
var getOne = document.getEle mentById('chekI D_One').checked ;
if(getOne == true)
{
document.getEle mentById('trOne ').style.visibi lity = "collapse";
}
else
{
document.getEle mentById('trOne ').style.visibi lity = "visible";
}
}
</script>
[/CODE]
This code is working fine in firefox. But not in IE and Safari.
Can anyone tell why is it so???
Plzzz help me...
Comment