How to check if a div is visible state or not?

前端 未结 7 2127
不知归路
不知归路 2020-12-24 12:11

I have tabs like this.

  • //content
  • Trying to check it like

    7条回答
    •  心在旅途
      2020-12-24 12:59

      Check if it's visible.

      $("#singlechatpanel-1").is(':visible');

      Check if it's hidden.

      $("#singlechatpanel-1").is(':hidden');

    提交回复
    热议问题