I have a group of radio buttons that I'm trying to validate with a custom validator in ASP. I know I can't use a Required Validator on these items because they aren't eligible for Required Validators in ASP.Net and I can't use a radio button list because I have a div that is shown in between the radio buttons if they are clicked 

```
<asp:RadioButton ID="showYear" runat="server" CssClass="reportYear" GroupName="dateSelection"/>Show by calendar year
//// Div to show if showYear is Clicked
<asp:RadioButton ID="showDate" runat="server" CssClass="reportDates" GroupName="dateSelection"/>Show by date range
//// Div to show if showDate is Clicked

```

And here is the Custom Validator:

```
<asp:CustomValidator ID="validateGroup1" runat="server" Display="Dynamic" ErrorMessage="Please select option for step 1" ClientValidationFunction="validateDateStyle" ValidationGroup="validateYTDSearch" />

```

The problem I am having is this javascript function:

```
function validateDateStyle(oSrc, args) {

    $(document).ready(function () {

        var r1 = $('.reportDates').attr('checked');
        var r2 = $('.reportYear').attr('checked');

        alert(r1 + " " + r2);

    });

}

```

Upon triggering the function with the validator call it pops the window up with

"Undefined Undefned" even when the radios are checked.

Any ideas why it won't properly pull the checked value?

Thanks