bootStrap下拉菜单 点击下拉列表某个元素,列表不隐藏

html:

<a class="dropdown-toggle bgImg-priceWran " id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"></a>
        <div class="dropdown-menu priceWarn_list" aria-labelledby="dropdownMenu1">
            <h3 class="font-14">
                <i class="text-title text-strong">消息提示</i>
                <a>a1</a>
                <a>a2</a>
                <a class="noHide">a3</a>
            </h3>
            <ul class="list-unstyled">
                <li>1</li>
                <li>2</li>
            </ul>

        </div>

js:

$('body').on('click', '.dropdown-menu .noHide', function (e) {
      e.stopPropagation();
});

 

posted @ 2017-09-19 12:57  Sun~_~  阅读(361)  评论(0编辑  收藏  举报