1.Client side code is as follows:
<select id="myIndent">
<option value="2">   second level</option>
<option value="3">   third level</option
</select>
JavaScript Code:
2.Server side code is as follows:
<asp:DropDownList ID="ddlTest" runat="server">
</asp:DropDownList>
CSharp Code: