I have defined two radio buttons('Yes','No') in asp:repeater. Which are dynamic at run time, meaning that if the database returns 5 questions then for every question we have option ('Yes','No'). The image attached shows the existing design of the radio buttons
Now i want to validate these radio buttons defined in asp:repeate to check if the radio buttons is checked or not using javascript/jquery. Below is the code:
<asp:Repeater ID="rpSuppQuestions" runat="server" OnItemCommand="rpSuppQuestions_ItemCommand" OnItemDataBound="rpSuppQuestions_ItemDataBound">
<ItemTemplate>
<div class="div_soru_wrapper">
<table width="100%" border="0" style="text-align: left">
<tr>
<td align="left" style="vertical-align: top;">
<asp:HiddenField ID="hdnQuestionID" Value='<%# Bind("Question_ID") %>' runat="server" />
<asp:Label ID="Label1" runat="server" Text="Q" CssClass="labelSmallBold"><%# Convert.ToString(Container.ItemIndex + 1) %>:</asp:Label>
</td>
<td align="left">
<asp:Label ID="lblSuppQuestions" runat="server" Text='<%# Bind("Question_description") %>'
CssClass="labelSmallBold" Width="900px"></asp:Label>
</td>
</tr>
<tr>
<td align="left">
<asp:Label ID="Label5" runat="server" Text="A" CssClass="labelSmallBold"><%# Convert.ToString(Container.ItemIndex + 1) %>:</asp:Label>
</td>
<td align="left">
<table align="left">
<tr>
<td>
<asp:RadioButton ID="rbYes" runat="server" type="radio" CssClass="rpyes" name="tttt" GroupName="rbAnswer" Text="Yes" Font-Names="Verdane" Font-Size="10" ForeColor=" #936E85" Visible="true"/>
<asp:RadioButton ID="rbNo" runat="server" CssClass="rpyes" GroupName="rbAnswer" Text="No" Font-Names="Verdane" Font-Size="10" ForeColor=" #936E85" Visible="true"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</ItemTemplate>
</asp:Repeater>