radio button click doesn't work
<p>I have two radio buttons on my MVC page. When I click on 'Yes' button it enables the textbox but when I click on 'No' it doesn't disable the textbox. What could be the problem?</p>

<pre><code>    $('#rdoDate').click(function () {
        debugger;
        switch ($(this).val()) {
            case 'N':
                $("#txtDate").attr("disabled", true);
                break;
            case 'Y':
                $("#txtDate").removeAttr("disabled");
                break;
        }
    });

   &lt;%=Html.RadioButton("rdoDate","Y")%&gt;&lt;label&gt;Yes&lt;/label&gt; 
    &lt;%=Html.RadioButton("rdoDate", "N", true)%&gt;&lt;label&gt;No&lt;/label&gt;

&lt;%: Html.TextBoxFor(model =&gt; model.txtDate, new { id = "txtDate", disabled = true })%&gt; 
</code></pre>
