You can give them a common class, like this:
<fieldset id="one" class="sets"> one </fieldset>
<fieldset id="two" class="sets"> two </fieldset>
Then give the radio buttons matching values to the IDs, like this:
<label><input type="radio" name="group1" checked="checked" value="one" /> one </label>
<label><input type="radio" name="group1" value="two" /> two </label>
Then rig up and onchange
event, like this:
$(function() {
$("input[name=group1]").change(function() {
$(".sets").hide(); //hide them all
$("#" + this.value).show(); //show the one you clicked
}).filter(':checked').change(); //show the appropriate one on load
});
You can give it a try here, all this does is every time a change happens, hide all the <fieldset>
elements with that class, then show only the one with the corresponding ID.