在鼠标悬停时显示下拉列表项 [英] Show drop down list items on mouse over
本文介绍了在鼠标悬停时显示下拉列表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法获得此asp.net下拉列表来显示鼠标悬停项目。
感谢您的帮助
Hi,
I can''t get this asp.net dropdownlist to show the items on mouseover.
Thanks for your help
<asp:DropDownList runat="server" ID="cbSort" CssClass="dropDownList" AutoPostBack="true" OnSelectedIndexChanged="cbItemsPerPage_SelectedIndexChanged" Width="155">
<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>
$(文件).ready(function(){
$(#MainContent_cbSort)。hover(function(){
$(this).size = 2;
});
});
$(document).ready(function () {
$("#MainContent_cbSort").hover(function () {
$(this).size = 2;
});
});
推荐答案
(document).ready(function(){
(document).ready(function () {
(#MainContent_cbSort)。hover(function(){
("#MainContent_cbSort").hover(function () {
(this).size = 2;
});
});
(this).size = 2;
});
});
这篇关于在鼠标悬停时显示下拉列表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文