Js method to determine whether an element is hidden
- 2020-03-30 03:15:28
- OfStack
if( document.getElementById("div").css("display")==='none')
if( document.getElementById("div").css("display")==='block')
$("#div").is(":hidden"); //Deciding whether to hide
$("#div").is(":visible")