I want the "that" button to be disabled unless "this" is clicked.
But I'm getting a javascript error wherein it "cannot read the property of a null" when checking the "checked" quality of "this". Am I not referring to it the right way?
<asp:Content ID="Content2" runat="server">
<div><asp:RadioButton ID="this" /></div>
<div><asp:RadioButton ID="that" /></div>
<script type="text/javascript">
$(document).ready(function ()
{
if (document.getElementById("this").checked == false
{
document.getElementById("that").disabled = true;
}
});
</script>
</asp:Content>