开发者

asp.net dropdownlist onmousehover event fire dropdown display data

开发者 https://www.devze.com 2023-04-07 15:10 出处:网络
I have asp:DropDownList control which i want to display data to user who don\'t want to click on 开发者_开发技巧it.

I have asp:DropDownList control which i want to display data to user who don't want to click on 开发者_开发技巧it. But user only want to make Mouse hover over asp:DropDownList Control. Is there any possible way to make it without using datalist control or gridview ? If so let me know it please.


<script>
        function Open_ddl(ddl) {
            document.getElementById(ddl).size = 5
        }


        function Close_ddl(ddl) {
            document.getElementById(ddl).size = 1
        }

</script>

...

<asp:DropDownList ID="ddlPostClaim" runat="server" onmouseover="Open_ddl('ddlPostClaim')" onmouseout="Close_ddl('ddlPostClaim')"></asp:DropDownList>

This does however create a new problem where the mouseover over the menu items will not highlight them, at least for me. Nonetheless, it's a start.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号