Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to display a checkboxlist/radiobuttonlist inside a html select control?

Hai all,
iam stucked at this place.
i want to display a checkboxlist/radiobutton list inside a html select control.
exactly similar to the one which is in msdn search(technology,language..).
if i click on the select control then a checkbox list should be generated.
but if i write a checkboxlist inside the select control tag then,it is displaying in the page load itself.

<select id="selcttag" >
<asp:checkboxlist id="checkboxlist1" runat="server">
<asp:listitems text="asp" value="asp"/>
<asp:listitems text="c#" value="c#"/>
</asp:checkboxlist>
</select>
But in this case,the checkbox list is displayed on the page before i click on the select control (in the page load event)

i want something like this:
<select id="selecttag" onclick="select_click()">
</select>

Please help me..
[912 byte] By [praveenalwar] at [2007-11-11 10:25:55]
# 1 Re: How to display a checkboxlist/radiobuttonlist inside a html select control?
Can you post an example?
kashif_82 at 2007-11-11 23:11:53 >