Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to display list of dropdown when mouse over using dot net
Posted

 
Share this answer
 
C#
<asp:dropdownlist runat="server" id="cbSort" cssclass="dropDownList" autopostback="true" onselectedindexchanged="cbItemsPerPage_SelectedIndexChanged" width="155" xmlns:asp="#unknown">
                    <asp:listitem text="Title A-Z" value="1a" selected="True"></asp:listitem>
                    <asp:listitem text="Sub Type Z-A" value="7z"></asp:listitem>
                </asp:dropdownlist>


C#
$('#MainContent_cbSort').hover(function(){
    $(this).attr('size', 2);
},function(){
    $(this).removeAttr('size');
});

hope this will help you
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900