title: how to set visible true and false for drop down list box using javascript in asp.net
body: <pre><code>&lt;asp:DropDownList ID="ddloption" runat="server" Visible="false"&gt;
    &lt;asp:ListItem Text="Active" Value="Active"&gt;&lt;/asp:ListItem&gt;
    &lt;asp:ListItem Text="D-Active" Value="D-Active"&gt;&lt;/asp:ListItem&gt;
  &lt;/asp:DropDownList&gt;
  
  function boxchange(dd)
  {
    document.getElementById("&lt;%= ddloption.ClientID%&gt;").visibility = "visible";
  }
  </code></pre>
  
  <p>ddloption is null, what i m getting...can you tell me how to work with this.</p>