스크립트만 사용시
obj.style.display = (obj.style.display == "none") ? "block" : "none";
jquery에서
if($(".abc").css("display") == "none"){
$(".abc").show();
} else {
$(".abc").hide();
}
'jQuery' 카테고리의 다른 글
[jQuery] data 선택 및 수정 (0) | 2018.02.19 |
---|---|
[jQuery] jQuery Responsive - matchMedia (not flexible) (0) | 2018.02.05 |
[jQuery] Request Parameter 받기 (0) | 2018.01.10 |
[javascript] http와 https 구분없이(혹은 구분해서) 페이지 로딩 (0) | 2017.12.20 |
[jQuery] 텍스트/문자열 변경 및 검색 - indexOf, match 함수, replace 함수, split 함수, html(),text(),val() 메소드 (0) | 2017.12.19 |