Disabling elements when deselecting a checkbox
<p>I have a checkbox, a drop down list and a text box.
I want to disable the drop down and text box on deselecting the checkbox.
Following is what I have on my view - </p>

<pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
&lt;%Html.CheckBox("chkCheckMe", new { enabled = Convert.ToBoolean(ViewData["ShowFlag"])}); %&gt;&gt;
&lt;%Html.DropDownList("ddlModes", new SelectList(new string[]{"Auto", "Manual"}), new { enabled = Convert.ToBoolean(ViewData["ShowFlag"])}); %&gt;
&lt;%Html.TextBox("txtSample", new {enabled = Convert.ToBoolean(ViewData["ShowFlag"]) }); %&gt;&gt;
&lt;/asp:Content&gt;
</code></pre>

<p>Can I do this using script?</p>

<p>Thanks,
Kapil</p>
