How to show/hide if variable is null

后端 未结 3 1611
误落风尘
误落风尘 2020-12-25 09:14

I\'m wanting to show/hide a div based on whether a variable is null or not.

Note: the variable in

3条回答
  •  猫巷女王i
    2020-12-25 10:04

    In this case, myvar should be a boolean value. If this variable is true, it will show the div, if it's false.. It will hide.

    Check this out.

提交回复
热议问题