slideToggle and :visible

后端 未结 2 1590
轮回少年
轮回少年 2020-12-17 15:13

When using the sliderToggle method, the :visible expression never seems to return anything other than true.

If I manually use show

2条回答
  •  温柔的废话
    2020-12-17 15:44

    Try adding a handler.

    notes.slideToggle ("fast", function() { 
      var isVisible = notes.is(":visible");
    });
    

提交回复
热议问题