SyntaxFix
Write A Post
Hire A Developer
Questions
Just hide them before showing them:
$(document).ready(function(){ $("input[name$='group2']").click(function() { var test = $(this).val(); $("div.desc").hide(); $("#"+test).show(); }); });