Check div is hidden using jquery

前端 未结 6 1079
故里飘歌
故里飘歌 2021-02-01 14:46

This is my div

Then I have a Show button that will show the div when you click:

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 15:23

    Did you notice your typo, $car2 instead of #car2 ?

    Anyway, :hidden seems to be working as expected, try it here.

提交回复
热议问题