function setRowonClick()
{
var rowOther = document.getElementById('<%=trShowDetail.ClientID%>');
if (rowOther)
{
var s = document.getElementById('<%=rbtnIsPS.ClientID%>');
var s1 = s.getElementsByTagName('input');
for (var i = 0; i < s1.length; i++)
{
if (s1[i].checked)
{
if (s1[i].checked && s1[i].value == '0')
{
rowOther.style.display = '';
}
else
{
rowOther.style.display = 'none';
}
}
}
}
}
<asp:RadioButtonList ID="rbtnIsPS" runat="server" RepeatDirection="Horizontal" onclick="setRowonClick();">
0 comments:
Post a Comment