마스터 페이지가 페이지에 존재하는 자바 스크립트에서 RadioButtonList에 액세스 할 때 오류가 발생하고 난 thefollwing 수행하려고내가 마스터 페이지가하고 RadioButtonList1를 포함 asp.net 페이지가
<script type="text/javascript">
var radioButtonList = document.getElementById('<%=RadioButtonList1.ClientID%>');
if(radioButtonList[0].checked)
document.getElementById("_secondTR").style.display = "block";
else if (radioButtonList[1].checked)
document.getElementById("_secondTR").style.display = "none";
}
</script>
<table style="width: 100%">
<tr id="Tr1">
<td>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" BackColor="#FFCC99"
RepeatDirection="Horizontal" Width="117px" onclick="ShowHide()">
<asp:ListItem Value="1">Yes</asp:ListItem>
<asp:ListItem Value="0">No</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr id="_secondTR" runat="server" style="display: none">
<td>
<asp:RadioButton ID="Five" runat="server" GroupName="1" BackColor="#669999" />
<asp:RadioButton ID="Four" runat="server" GroupName="1" CausesValidation="True" BackColor="#669999" />
</td>
</tr>
</table>
내가 할 수있는 자바 스크립트에서 RadioButtonList1을 얻지 못한다면 어떤 도움을받을 수 있습니까?
.net에 관심이 없으므로 브라우저/인터프리터에 표시되는 실제 자바 스크립트 코드를 게시 할 수 있습니까? – HBP