hiding and showing div using Jquery
<p>I am using c# for programming, please see below code:</p>

<pre><code>&lt;p&gt;&lt;b&gt;
            &lt;%=ResourceFile.GetResourceString("c_FreeLiveOnlineProgramInterest")%&gt;
        &lt;/b&gt;&amp;nbsp;&lt;font color="red"&gt;*&lt;/font&gt;&amp;nbsp;
        &lt;br&gt;
        &lt;asp:dropdownlist id="ddl_ProgramInterest" tabIndex="3" Runat="server"&gt;&lt;/asp:dropdownlist&gt;&lt;br&gt;
        &lt;asp:requiredfieldvalidator id="reqv_ddl_ProgramInterest" runat="server" Display="Dynamic" ControlToValidate="ddl_ProgramInterest"&gt;&lt;/asp:requiredfieldvalidator&gt;&lt;/p&gt;
    &lt;div style="DISPLAY: none" id="divOther" runat="server"&gt;
        &lt;p&gt;&lt;b&gt;
                &lt;%=ResourceFile.GetResourceString("c_FreeLiveOnlineProgramInterestOther")%&gt;
            &lt;/b&gt;
            &lt;br&gt;
            &lt;asp:textbox id="txt_Other" tabIndex="6" Width="155" runat="server"&gt;&lt;/asp:textbox&gt;&lt;br&gt;
            &lt;asp:requiredfieldvalidator id="reqv_txt_Other" runat="server" Display="Dynamic" ControlToValidate="txt_Other"&gt;&lt;/asp:requiredfieldvalidator&gt;&lt;/p&gt;
    &lt;/div&gt;
</code></pre>

<p>Above you can see that I have a dropdown "Program of Interest" and above dropdown have two values 'Live' and 'Other', I want when user select other then the "divOther' will appear or will be hidden as well same for requirefieldvalidator 'reqv_txt_Other", I have written below code in codebehind, its working fine but on server side.</p>

<pre><code>private void ddl_ProgramInterest_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if (ddl_ProgramInterest.SelectedValue == ResourceFile.GetResourceString("c_FreeLiveOnlineProgramInterestValue2"))
            {           
                divOther.Style.Add("display","block");
                reqv_txt_Other.Enabled = true;
            }
            else
            {           
                divOther.Style.Add("display","none");
                reqv_txt_Other.Enabled = false;
                txt_Other.Text="";
            }
        }
</code></pre>

<p>Please suggest how can do using JQuery!</p>

<p>Thanks</p>
