// This sets "radBarrier" to YES if "radVeteran" 'Veteran' is selected. Otherwise should unselect radVeteran.
function SetHaveDisability(QuestionID)
{
var rad = QuestionID;
var rbl = document.getElementById(rad); // The whole RadioButtonList Control
var rbl_0 = document.getElementById(rad + '_0'); // "Disabled Veteran"
if (rbl_0.checked)
{
document.getElementById("radBarrier_0").checked = true;
} else
{
document.getElementById("radBarrier_0").checked = false;
}
}
<asp:RadioButtonList ID="radVeteran" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" onclick=" SetHaveDisability(this.id); ">
<asp:ListItem Value="Veteran" Text="Disabled Veteran" />
<asp:ListItem Value="Dependant" Text="Eligible Spouse of a Veteran" />
<asp:ListItem Value="Care Giver" Text="Care Giver of an ill, injured, or disabled Veteran" />
<asp:ListItem Value="Neither" Text="None of those." />
</asp:RadioButtonList>
<asp:RadioButtonList ID="radBarrier" runat="server" RepeatDirection="Horizontal"
onclick="ShowHideBarrier(this.id);" RepeatLayout="Flow">
<asp:ListItem Value="Yes" Text="Yes" />
<asp:ListItem Value="No" Text="No" />
<asp:ListItem Value="DA" Text="N/A" />
</asp:RadioButtonList>
Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.