i have accomplished using vb.net like below way but i want same thing using JavaScript or jquery
code behind
Private Sub chkisAcceptedPrivacyPolicy_CheckedChanged(sender As Object, e As EventArgs) Handles chkisAcceptedPrivacyPolicy.CheckedChanged
If chkisReadCovid19Information.Checked = True Then
btnAccept.Enabled = chkisAcceptedPrivacyPolicy.Checked
End If
End Sub
Private Sub chkisReadCovid19Information_CheckedChanged(sender As Object, e As EventArgs) Handles chkisReadCovid19Information.CheckedChanged
If chkisAcceptedPrivacyPolicy.Checked = True Then
btnAccept.Enabled = chkisReadCovid19Information.Checked
End If
End Sub
<asp:CheckBox ID="chkisAcceptedPrivacyPolicy" runat="server" Checked="False" ClientIDMode="Static" AutoPostBack="true" />
<asp:CheckBox ID="chkisReadCovid19Information" runat="server" Checked="False" ClientIDMode="Static" AutoPostBack="true" />
<asp:Button runat="server" CssClass="btn btn-default" ID="btnAccept" ClientIDMode="Static" Text="<%$ Resources: label, Accept %>" Enabled="false"/>