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 !

regards
Alex

----- Original Message ----- 
From: "jhicks" <jeremy.hi...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Thursday, June 11, 2009 6:46 PM
Subject: [Proto-Scripty] Re: Getting checked checkbox values



Shouldn't this line take care of that?

$$('input.keywordcheckbox[checked]')

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.

http://pastie.org/508742

Jeremy

On Jun 11, 5:07 am, "Alex McAuley" <webmas...@thecarmarketplace.com>
wrote:
> Updated your code to include if the checkbox is checked!!
>
> http://pastie.org/508323
>
> HTH
>
> Alex
>
> ----- Original Message -----
> From: "jhicks" <jeremy.hi...@gmail.com>
> To: "Prototype & script.aculo.us" 
> <prototype-scriptaculous@googlegroups.com>
> 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?
>
> >http://pastie.org/507464
>
>



--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to