Hi!

I want to (as the topic suggests) get a list/array of all elements on
a page whose id starts with a string using Prototype.
For example, I have several checkboxes like this:

<input type="checkbox" id="match_this_1">
<input type="checkbox" id="match_this_2">
<input type="checkbox" id="match_this_3">
<input type="checkbox" id="match_this_4">

I want to find these elements on my page based on the fact that their
ids start with "match_this".
Then I want to assign a onclick-function to the first checkbox that
disables all the other ones.
Can somebody help me out with how to do this with Prototype?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to