<asp:RadioButtonList ID="rblradio" runat="server">
<asp:ListItem Value="M" Text="Male"></asp:ListItem>
<asp:ListItem Value="F" Text="Female"></asp:ListItem>
</asp:RadioButtonList>
javascriptでこのラジオボタンリストを検証する方法私はこのイベントのようにやっています
選択されていないと言っているオプションを選択しました
function ValidateAccessLevel() {
var AccessLevelIndexValue = document.getElementById('<%=rblradio.ClientID%>');
if (AccessLevelIndexValue.checked)
{
return false;
}
else
{
return true;
}
}
</script>