Rails 2.3.5, just using Prototype in this project so far.
I have a form with Check Boxes and Radio buttons. I've been trying several scripts trying to find a way to provide a "Select All" / "Select None" functionality for the checkboxes where the Radio Buttons are not affected. Even scripts where you specifically include the id of the checkboxes will still cause the Radio Buttons to toggle.
Like the top answer (Prototype based) from this question: Select all checkboxes
Even though the function takes the id of the checkboxes, It will affect the radio buttons in the form (the last radio button will end up being selected).
A couple of scripts I tried went by the name of the checkboxes, but the name of them in my case is name="selected_contacts[]" for an array, and I couldn't figure out how to get Javascript to accecpt a name with brackets in the function.
I haven't had any luck w/ Google so far. Is it possible to toggle checkboxes w/o affecting radio buttons in the same form?
Thank You!