[jQuery] Re: Can't select checked checkboxes

2009-07-20 Thread SvenV
Thanks, that did it On 20 jul, 22:06, Hector Virgen wrote: > Try using :checked instead of [checked] > $("[id^='item-']:checked") > > -- > Hector > > On Mon, Jul 20, 2009 at 9:09 AM, SvenV wrote: > > > I don't get it > > In my page I

[jQuery] Can't select checked checkboxes

2009-07-20 Thread SvenV
I don't get it In my page I have several checkboxes like this one: This is my Jquery code: function ShowSelected() { var ids; $("[id^='item-'][checked]").each(function(){ids = ids +"," +$ (this).attr("id").split('-')[1];}); alert(ids); } This should give me a list of id