我有一個RadioButtonList 想要點同意的時候按鈕可用 點不同意按鈕不可用 默認是不可用 現在點了同意或者不同意 我的那個btnSubmit按鈕都會變成可用 而且不會再變回不可用 要怎么解決 function acceptprotocol(){
if(document.getElementById("rblAccept").SelectValue==0{
document.getElementById("btnSubmit").disabled=true;
}
else{
document.getElementById("btnSubmit").disabled=false;
}
}RadioButtonList那里是這樣的<asp:RadioButtonList ID="rblAccept" runat="server" RepeatDirection="Horizontal" style="margin:auto" onclick="acceptprotocol()">
<asp:ListItem Value="0">同意</asp:ListItem>
<asp:ListItem Value="1" Selected="True">不同意</asp:ListItem>
</asp:RadioButtonList>
asp.net里RadioButtonList選擇的問題
鳳凰求蠱
2018-07-02 09:27:53