Select All/None Checkboxes but not affect Raido Buttons?
<p>Rails 2.3.5, just using Prototype in this project so far.</p>

<p>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.</p>

<p>Like the top answer (Prototype based) from this question:
<a href="http://stackoverflow.com/questions/888173/select-all-checkboxes">Select all checkboxes</a></p>

<p>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).</p>

<p>A couple of scripts I tried went by the name of the checkboxes, but the name of them in my case is <strong>name="selected_contacts[]"</strong> for an array, and I couldn't figure out how to get Javascript to accecpt a name with brackets in the function.</p>

<p>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?</p>

<p>Thank You!</p>
