[jQuery] Re: Array of all checked checkboxes

2009-03-27 Thread deltaf
How about: var checkedBoxes = $('input.the_checkbox:checked'); FYI --> http://docs.jquery.com/Selectors/checked On Mar 27, 3:55 pm, Thierry wrote: > I have a series of checkboxes with class="the_checkbox".  I can get > all checkboxes by classname and manually loop through each to find out > th

[jQuery] Re: Array of all checked checkboxes

2009-03-27 Thread jay
Simple example: var checked = $('.cbx:checked'); alert(checked[0].id+", "+checked[1].id) On Mar 27, 3:55 pm, Thierry wrote: > I have a series of checkboxes with class="the_checkbox".  I can get > all checkboxes by classname and manually loop through each to find out > the chec

[jQuery] Re: Array of all checked checkboxes

2009-03-27 Thread James
Yes, $(".the_checkbox:checked") Documentation: http://docs.jquery.com/Selectors On Mar 27, 9:55 am, Thierry wrote: > I have a series of checkboxes with class="the_checkbox".  I can get > all checkboxes by classname and manually loop through each to find out > the checked ones.  I'm wondering if