jQuery with asp.net, selecting selected item of RadioButtonList, plz help

jQuery with asp.net, selecting selected item of RadioButtonList, plz help

I am using jquery with asp.net.

In a user control there is a RadioButtonList (items in radio button list are set on design time). Requirment is to show selected value in alert when ever user select a radiobutton item. I m doing the folloiwng code but it is not working:

<script type="text/javascript">
        function pageLoad()
         {
            $("input[id$='rbtnYears']").change(SetValidator);
         }
        
        function SetValidator()
        {
            alert("validator");
        }          
    </script>










HTML of this radiobutonlist is being rendered as:

<table id="ctl00_cphBody_IndividualPersonalDetails1_rbtnYears" border="0">
<tr>
<td><input id="ctl00_cphBody_IndividualPersonalDetails1_rbtnYears_0"
type="radio" name="ctl00$cphBody$IndividualPersonalDetails1$rbtnYears" value="0"
checked="checked" tabindex="16" />


<label for="ctl00_cphBody_IndividualPersonalDetails1_rbtnYears_0">Less than 3</label>
</td>
<td>
<input id="ctl00_cphBody_IndividualPersonalDetails1_rbtnYears_1" type="radio"
 name="ctl00$cphBody$IndividualPersonalDetails1$rbtnYears" value="1" tabindex="16" />

<label for="ctl00_cphBody_IndividualPersonalDetails1_rbtnYears_1">More than 3</label>
</td>
</tr>
</table>











plz help me on this.

thanks