Greetings, how to get the selectedindex of check box from checkboxlist control using jquery?
Update:
This code is giving me selected index equal 0 please advive
<asp:CheckBoxList ID="chkListGroups" runat="server"
style="position:absolute; top: 1115px; left: 745px; bottom: 371px;"
DataSourceID="SqlDSGroups" DataValueField="Groups"
onclick="test()">
</asp:CheckBoxList>
....................
java script function
.....................
function test(){
$('#<%=chkListGroups.ClientID %>').click(function() {
var selectedIndex = $('#<%=chkListGroups.ClientID %>').index($(this));
alert(selectedIndex);
});
}