小编Bjo*_*ngi的帖子

单击后,Twitter Bootstrap下拉列表将关闭

我没有让这个工作.下拉列表一直在关闭.

我希望能够从下拉菜单中发送消息.

我包括了两个bootstrap.js,bootstrap.cssbootstrap-responsive.css在标题中.

如何才能让这个下拉菜单关闭?

<head>
<script type='text/javascript'>//<![CDATA[
    $(window).load(function () {
        $('.dropdown-menu textarea a').click(function (e) {
            e.stopPropagation();
        });

    });

    function ShowDr(div) {
        $("#medr" + div).css("display", "block");
        $("#xdr" + div).focus();
    }

    //]]>  
</script>
</head>
<body>


 <ul class="nav">
   <li class="dropdown" data-dropdown="dropdown">
     <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">      Message 
     <b class="caret"></b></a>
     <ul class="dropdown-menu dropdown-menu-large">
        This is a message from the user John to Ann. If Ann wants to send an answer she will click the link. Then 
        the textarea will …
Run Code Online (Sandbox Code Playgroud)

twitter-bootstrap drop-down-menu

6
推荐指数
2
解决办法
9091
查看次数

标签 统计

drop-down-menu ×1

twitter-bootstrap ×1