Re: [jQuery] check for checked

2007-02-13 Thread Andreas Wahlin
As usual, it comes down to selector-fu, thanks gyes :) Andreas On Feb 12, 2007, at 23:56 , Klaus Hartl wrote: > Mike Alsup schrieb: >>> What about this? >>> $(':checkbox:checked', checkboxes); >> >> Sweet! > > > If you don't need to filter radios, I guess $(':checked') would work, > doesn't it?

Re: [jQuery] check for checked

2007-02-12 Thread Klaus Hartl
Mike Alsup schrieb: >> What about this? >> $(':checkbox:checked', checkboxes); > > Sweet! If you don't need to filter radios, I guess $(':checked') would work, doesn't it? -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/disc

Re: [jQuery] check for checked

2007-02-12 Thread Mike Alsup
> What about this? > $(':checkbox:checked', checkboxes); Sweet! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] check for checked

2007-02-12 Thread Joan Piedra
What about this? $(':checkbox:checked', checkboxes); On 2/12/07, Mike Alsup <[EMAIL PROTECTED]> wrote: > For all checked boxes on a page: > $("input:checked") That will get you checked radios too. ___ jQuery mailing list discuss@jquery.com http://jq

Re: [jQuery] check for checked

2007-02-12 Thread Sam Collett
On 12/02/07, Mike Alsup <[EMAIL PROTECTED]> wrote: > > For all checked boxes on a page: > > $("input:checked") > > That will get you checked radios too. > How about $("[EMAIL PROTECTED]:checked") ___ jQuery mailing list discuss@jquery.com http://jquery.

Re: [jQuery] check for checked

2007-02-12 Thread Mike Alsup
> For all checked boxes on a page: > $("input:checked") That will get you checked radios too. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] check for checked

2007-02-12 Thread Klaus Hartl
Andreas Wahlin schrieb: > I have a jquery selection of input tags of type checkbox, I want to > filter out those that are checked. Feels like it should be something > easy like > > $('[EMAIL PROTECTED]', checkboxes); > > andreas With that you would get all checkboxes that are checked already

Re: [jQuery] check for checked

2007-02-12 Thread Sam Collett
On 12/02/07, Andreas Wahlin <[EMAIL PROTECTED]> wrote: > I have a jquery selection of input tags of type checkbox, I want to > filter out those that are checked. Feels like it should be something > easy like > > $('[EMAIL PROTECTED]', checkboxes); > > andreas Even simpler than that. For all check

[jQuery] check for checked

2007-02-12 Thread Andreas Wahlin
I have a jquery selection of input tags of type checkbox, I want to filter out those that are checked. Feels like it should be something easy like $('[EMAIL PROTECTED]', checkboxes); andreas ___ jQuery mailing list discuss@jquery.com http://jquery