function DisplayRowonRbl()
{
var trDesignation= document.getElementById('<%=trDesignation.ClientID%>');
var tblDepartment= document.getElementById('<%=tblDepartment.ClientID%>');
var s=document.getElementById('<%=rbnDepartment.ClientID%>');
var s1=s.getElementsByTagName('input');
for (var i = 0; i < s1.length; i++)
{
if (s1[i].checked && s1[i].value=='Others')
{
trDesignation.style.display = '';
tblDepartment.style.display = 'none';
}
else
{
tblDepartment.style.display = '';
trDesignation.style.display = 'none';
}
}
}
Call the above method on the selected change properties of radiobutton.
0 comments:
Post a Comment