<td> <asp:RadioButtonList ID="rb_Question1" runat="server" ValidationGroup="req" Height="16px" RepeatColumns="2" Width="220px" > <asp:ListItem Text="Yes" Value="1"></asp:ListItem> <asp:ListItem Text="No" Value="0"></asp:ListItem> </asp:RadioButtonList> </td>
<tr> <td align="right"><b>Comments:</b></td> <td colspan="2" class="row"> <div class='textAreaDiv'> <asp:TextBox ID="ReviewerDecsion_txt" class="border" runat="server" TextMode="MultiLine" Width="800px" Height="120px"></asp:TextBox> <asp:CustomValidator ID="cv_ReviewerDecsion_txt" runat="server" ValidateEmptyText="true" ClientValidationFunction="ReviewerDecsiontxt" ErrorMessage="Enter text for Approve this applicant to become a surveyor?" ForeColor="Red" Text="*" ValidationGroup="req"></asp:CustomValidator> </div> </td>
function ReviewerDecsiontxt(sender, args) { var radbtn1 = $("#cphMaster_rb_Question1_0"); var radbtn2 = $("#cphMaster_rb_Question1_1"); var ReviewerTxtbox = $("#ReviewerDecsion_txt"); if ((radbtn1[0].checked ) &&(ReviewerTxtbox.text)!= "") { args.IsValid = true; } else { args.IsValid = false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)