title: Show/Hide dropdown list values from other dropdown list value changed
body: <p>I want to Show/Hide some values of my ddlDuration that will change depending on the ddlLOanType I want. For example if they choose Personal Loan type from my dropdownlist, I want it to show all the values from the ddlDuration and if I choose New Car Loan, I want it to show these values "36,48,60". I'm not really sure what I should use for this. Thank you for your help</p>
  
  <pre><code>Type: &lt;asp:DropDownList ID="ddlLoanType" runat="server" AutoPostBack="True" 
          onselectedindexchanged="ddlLoanType_SelectedIndexChanged"&gt;
          &lt;asp:ListItem Value="0"&gt;Select&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="1"&gt;Personal Loan&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="2"&gt;New Car Loan&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="3"&gt;Used Car Loan&lt;/asp:ListItem&gt;
      &lt;/asp:DropDownList&gt;
  
  Duration:&lt;asp:DropDownList ID="ddlDuration" runat="server" 
          onselectedindexchanged="ddlDuration_SelectedIndexChanged" 
          AutoPostBack="True"&gt;
          &lt;asp:ListItem Value="12"&gt;12&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="24"&gt;24&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="36"&gt;36&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="48"&gt;48&lt;/asp:ListItem&gt;
          &lt;asp:ListItem Value="60"&gt;60&lt;/asp:ListItem&gt;
      &lt;/asp:DropDownList&gt;
  </code></pre>