jQuery Checkbox class attribute

Posted by mike on Stack Overflow See other posts from Stack Overflow or by mike
Published on 2010-06-14T04:11:39Z Indexed on 2010/06/14 4:22 UTC
Read the original article Hit count: 268

Filed under:
|
|
|

how do you access the class attribute of a in a jQuery selector statement?

for example

<asp:CheckBox runat="server" ID="cbTest" Text="Cb Test" FieldName="1st Test Check Box" class="toggleBox"/>

this:

$(':checkbox').toggleAttr("checked", true, false)

accesses the checkbox and applies a custom function to the checked attribute but if i want to filter based on a certain class how do i access/filter based on that?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about class