[jQuery] Re: Check checkbox based on ID list

2008-08-24 Thread Michael Geary
If you're able to do that, why not have the server just put the attribute in the HTML in the first place? -Mike > From: hubbs > > I figured it out, I just had my server write the jQuery attributes: > > $("#12").attr("checked", "checked"); > > On Aug 22, 11:58 am, hubbs <[EMAIL PROTECTED

[jQuery] Re: Check checkbox based on ID list

2008-08-24 Thread GLP
Something like this perhaps ? I do this based on the value attribute, if it's on = check it. The 'data' part is JSON. It's should be easy to convert this to an array. It's actually a workaround for IE troubles I have: $.each(data, function(){ var myid='#check'+

[jQuery] Re: Check checkbox based on ID list

2008-08-22 Thread hubbs
I figured it out, I just had my server write the jQuery attributes: $("#12").attr("checked", "checked"); On Aug 22, 11:58 am, hubbs <[EMAIL PROTECTED]> wrote: > There is also the option of me putting the checked values into an > array if that would help with this... > > On Aug 22, 11:27 am, hubb

[jQuery] Re: Check checkbox based on ID list

2008-08-22 Thread hubbs
There is also the option of me putting the checked values into an array if that would help with this... On Aug 22, 11:27 am, hubbs <[EMAIL PROTECTED]> wrote: > I am looking for ideas on how to check some checkboxes based on a list > of id's that match the id's of the checkboxes. > > Example: > >