I have a dynamically generated form - within it are multiple fieldsets with their own elements. Among those is a radio button. Here's a simplified snippet:

```
    <form name="ePIC" method="post" action="test.php">
        <fieldset>
            <input type="radio" name="pic[1]" />
        </fieldset>
        <fieldset>
            <input type="radio" name="pic[2]" />
        </fieldset>
        <input type="submit" name="submit" value="test" />
    </form>

```

Basically, in the fieldsets are pictures and the radio buttons are to select the cover picture for the album.

Everything is working great except the fact that, because the radio buttons are named differently, they won't act as a group - meaning, multiple radio buttons can be selected at once.

Can anyone tell me how to make the radio buttons act as a group, probably with javascript/jQuery?

I started trying to manage the buttons by class - but got lost along the way as to how to affect all the other radio buttons, at the click of one.