If i recall correctly that line will only return checked="checked" as an
attribute not if it was checked after the DOM was loaded....
Your way is the exact same way i gave u !
----- Original Message -----
From: "jhicks" <jeremy.hi...@gmail.com>
To: "Prototype & script.aculo.us" <firstname.lastname@example.org>
Sent: Thursday, June 11, 2009 6:46 PM
Subject: [Proto-Scripty] Re: Getting checked checkbox values
Shouldn't this line take care of that?
Its not that it was giving me ALL checkboxes back. It was that it was
giving me back the checked checkboxes when the page initially loaded
and not giving me the checkboxes that were checked after that.
Anyway, I ended up going a different route that is working great.
On Jun 11, 5:07 am, "Alex McAuley" <webmas...@thecarmarketplace.com>
> Updated your code to include if the checkbox is checked!!
> ----- Original Message -----
> From: "jhicks" <jeremy.hi...@gmail.com>
> To: "Prototype & script.aculo.us"
> Sent: Wednesday, June 10, 2009 6:18 PM
> Subject: [Proto-Scripty] Getting checked checkbox values
> > I've got a group of checkboxes that display on a page. By clicking on
> > a few different links on the side, the order of the checkboxes (and
> > their text) will adjust based on which link was clicked. I'm doing an
> > Ajax update when the link is clicked to get the new html.
> > I need to get the values for all checked checkboxes when the link is
> > clicked so that I know which checkboxes to mark as checked when i do
> > the Ajax update.
> > I'm using the following code, but it only seems to be grabbing the
> > checked checkbox values that were there when the page loaded and not
> > the checked checkbox values for the checkboxes that have been checked
> > after the page has loaded. Any suggestions?
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to email@example.com
To unsubscribe from this group, send email to
For more options, visit this group at