Selecting radiobuttons populated within asp.net RadioButtonList with jQuery

Posted by user194881 on Stack Overflow See other posts from Stack Overflow or by user194881
Published on 2010-05-21T20:35:26Z Indexed on 2010/05/21 22:20 UTC
Read the original article Hit count: 133

Filed under:
|

Hello and thanks in advance for the communal help I always find here. I have been tinkering around with what should seem a pretty straight forward task even for a jQuery newb as myself. I have a radiobuttonlist control bound to a collection:

<asp:RadioButtonList ID="radBtnLstPackageSelector" runat="server" 
 CssClass="PackageS">
</asp:RadioButtonList>

My form does have several other controls of the same type; Now, the challenge is to select and wire up a on Click event for every radiobutton from the radBtnLstPackageSelector.
I have tried several approaches such as:

var results1 = $(".PackageS").children("input");
var results1 = $(".PackageS").children("input[type=radiobutton");
var results1 = $("table.PackageS > input[type=radiobutton");

with no luck... Your help would be great right now! ~m

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ASP.NET