Oops, overlooked the 'checked' requirement. The selectors can be
'stacked.' I just tried this and it works:
$(".subscrCheckbox:checkbox:checked")
inversely:
$(":.subscrCheckbox:checkbox:not(:checked)")
gets those that aren't
On Nov 18, 5:26 pm, "c.barr" <[EMAIL PROTECTED]> wrote:
> Also $(".subscrCheckbox").is(":checked"); and $
> (".subscrCheckbox:checked") should work as well I believe
>
> On Nov 18, 3:45 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote:
>
>
>
> > $(".subscrCheckbox:checkbox") would return all checkboxes with the class
> > name of 'subscrCheckbox', including those that are not checked.
> > $(".subscrCheckbox:checkbox[checked]") is probably the shortest selector you
> > could use that meets your requirements.
>
> > -Hector
>
> > On Tue, Nov 18, 2008 at 1:41 PM, donb <[EMAIL PROTECTED]> wrote:
>
> > > $(".subscrCheckbox:checkbox") should also work.
>
> > >http://docs.jquery.com/Selectors
>
> > > On Nov 18, 4:36 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote:
> > > > I think this should work:
>
> > > > $('input.subscrCheckbox[type=checkbox][checked]');
> > > > -Hector
>
> > > > On Tue, Nov 18, 2008 at 1:30 PM, [EMAIL PROTECTED] <
>
> > > > [EMAIL PROTECTED]> wrote:
>
> > > > > Hi,
>
> > > > > How do I write a JQuery expression that will give me all the elements
> > > > > that are inputs of type=checkbox, that have class="subscrCheckbox" and
> > > > > that are checked?
>
> > > > > Thanks, - Dave- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -