RadioButtonResetAll(sMRNO);
function RadioButtonResetAll(rbDefaultValue) {
var RBID = '<%=rbMRNO.ClientID %>';
var RB1 = document.getElementById(RBID);
var radio = RB1.getElementsByTagName("input");
for (var i = 0; i < radio.length; i++) {
if (radio[i].value == rbDefaultValue) {
radio[i].checked = true;
}
}
<asp:RadioButtonList ID="rbMRNO" runat="server" Width="174px" RepeatDirection="Horizontal" >
<asp:ListItem Value="true">yes</asp:ListItem>
<asp:ListItem Selected="True" Value="false">no</asp:ListItem>
</asp:RadioButtonList>
댓글 없음:
댓글 쓰기