jquery-div未显示在选中的单选选项上

jquery-div未显示在选中的单选选项上,jquery,html,radio-button,hide,show,Jquery,Html,Radio Button,Hide,Show,我知道这里有几个关于这个问题的例子,但是我无法让它工作(jquery新手),我非常感谢任何帮助 <fieldset id="ctrl_529" class="radio_container mandatory"> <legend>Zertifizierungszyklus</legend> <input type="radio" name="certcycle" id="opt_529_0" class="radio" value="Erstz

我知道这里有几个关于这个问题的例子,但是我无法让它工作(jquery新手),我非常感谢任何帮助

<fieldset id="ctrl_529" class="radio_container mandatory">
<legend>Zertifizierungszyklus</legend>
     <input type="radio" name="certcycle" id="opt_529_0" class="radio" value="Erstzertifizierung" /> 
    <label id="lbl_529_0" for="opt_529_0">Erstzertifizierung</label>
    <input type="radio" name="certcycle" id="opt_529_1" class="radio" value="Rezertifizierung" /> 
    <label id="lbl_529_1" for="opt_529_1">Rezertifizierung</label>
</fieldset>

<div id="Rezertifizierung" class="addForm" style="display:none;">
<input type="text" name="nocert" id="ctrl_533" class="text halbeBreite" value="" maxlength="70" /><br />
<label for="ctrl_533" class="halbeBreite">Wievielte Rezertifizierung?</label>  
...
</div>
我希望div.addForm在加载时或选中上方单选按钮时隐藏。选中第二个单选按钮将显示div


我一整天都在尝试我在这里找到的不同片段,但我的部门根本没有反应,我只是看不出我做错了什么

您的表单隐藏在页面加载中,有什么不对?它适用于您的要求。@user2917560:检查此项并解释其中的不对之处?哇-谢谢大家。我不知道,它昨晚在JSFIDLE和我的web上都不起作用。也许这对我来说太晚了……好吧,在JSFIDLE上正常工作的东西在我的网站上不起作用。Firebug说,
TypeError:$(…)是空$(文档)。ready(函数()TypeError:$(…)。ready不是函数$(文档)。ready(函数(){
你能帮我吗?
$(document).ready(function() {
    $("input:radio[name='certcycle']").click(function() {      
        $('.addForm').hide();
        $('#' + $("input:radio[name='certcycle']:checked").val()).show();
    });
});