jQuery - close dropdown with .mouseout or a more suitable method, hint?

前端 未结 1 407
一整个雨季
一整个雨季 2021-01-28 03:56

I have the following piece of code:

$(\".option_box .option_name\").click(function () {
    $(this).siblings(\".collapsible\").toggle();
    $(this).toggleClass(         


        
相关标签:
1条回答
  • 2021-01-28 04:22

    As i understood: you would like to collapse table with mouseout. Why don't you add something like this:

    $(".collapsible").mouseleave(function() {
        $(".collapsible").hide();
    })
    

    doesn't it work for you?

    0 讨论(0)
提交回复
热议问题