jQuery
[jQuery] display 여부에 따라 show, hide
cpu21
2018. 2. 1. 18:27
스크립트만 사용시
obj.style.display = (obj.style.display == "none") ? "block" : "none";
jquery에서
if($(".abc").css("display") == "none"){
$(".abc").show();
} else {
$(".abc").hide();
}