I am trying to determine if a series of checkboxes have been changed
on the screen. They all have the same ID of  CODE, and different
values. the list is dynamic based on what was passed in to build the
screen. I have also setup a hidden div to store the inital valuse of
these checkboxes with and ID of SAVECODE. I am trying to compare the 2
lists to detect changes in which box is checked. Btu I am new to
javascript and prototypeJS,

Am I going about this the wrong way?

codelist = $$('code:checked');
savelist = $$('savecode:checked');

if (savelist != codelist) {
       do something;
}


--~--~---------~--~----~------------~-------~--~----~
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