jquery radio group toggle on click
<pre><code>$("input[name=sample]").click(function(){
            $("#"+$(this).val()).show();
            $("#"+$("input[name=sample]:not(:checked)").val()).hide();
    });
}); 
</code></pre>

<p>I was using this for switching between two divs. But when i added a third div and radio button, this didn't work for third one. It shows on click but doesn't hide others. What can cause this?</p>
