How to write Jquery validation for Radiobutton in asp.net?

Jul 1 2015 8:32 AM
Hi,
        I have taken two radio buttons in my asp.net webform like below,
<asp:RadioButton ID="rbmale" runat="server" Text="Male" GroupName="rb" style= "height:120px ; width:120px"/>
<br />

<asp:RadioButton ID="rbfemale" runat="server" Text="FeMale" GroupName="rb" style= "height:120px ; width:120px" /> 
in my script i wrote this,
         <script type="text/ javascript" language="javascript"
  var rbmale = $('[id*="rbmale"]').val();
var rbfemale = $('[id*="rbfemale"]').val(); 
if()
{
//what should I write in this?
}
<script/>
           Please help me in this code..

Answers (7)