basically the same answer as @amosrivera but remove the unchecking of all the checkbox as its necessary. instead use .not()
$("input:checkbox").click(function(){
var group = "input:checkbox[name='"+$(this).prop("name")+"']";
$(group).not(this).prop("checked",false);
});