[jQuery] Re: get all checkboxes

2007-09-20 Thread Potluri
$("[EMAIL PROTECTED]'checkbox'[EMAIL PROTECTED]'my_']") will give all checkboxes object notebook2 wrote: > > > > Hello, > > is it possible in prototype to get all checkboxes on a page with a fixed > id namepart like this: > > ID="my_checkbox" > > and i want to get all checkboxes begi

[jQuery] Re: get all checkboxes

2007-09-19 Thread seedy
if you know the 'my_' is always at the start of the id this might be a bit faster $("input[id^='my_']:checkbox") Glen Lipka wrote: > > Try $("input[id*='my_']:checkbox") > I havent tested this, but it should work. > > Glen > > On 9/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >

[jQuery] Re: get all checkboxes

2007-09-19 Thread Trans
On Sep 19, 4:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > is it possible in prototype to get all checkboxes on a page with a fixed > id namepart like this: > > ID="my_checkbox" > > and i want to get all checkboxes beginning on "my_" I'm having a similar issue. I used:

[jQuery] Re: get all checkboxes

2007-09-19 Thread Peter Bengtsson
$.grep( $('[EMAIL PROTECTED]"checkbox"]'), function(e) { return e.id.substr(0,3)=='my_'} ); [EMAIL PROTECTED] wrote: Hello, is it possible in prototype to get all checkboxes on a page with a fixed id namepart like this: ID="my_checkbox" and i want to get all checkboxes beginning on "m

[jQuery] Re: get all checkboxes

2007-09-19 Thread Glen Lipka
Try $("input[id*='my_']:checkbox") I havent tested this, but it should work. Glen On 9/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hello, > > is it possible in prototype to get all checkboxes on a page with a fixed > id namepart like this: > > ID="my_checkbox" > > and i want to ge