'Has'에 해당되는 글 1건

  1. 2012.07.22 has(), is()

has(), is()

JavaScript/jQuery 2012. 7. 22. 14:07

.has(selector)

자식요소로 selector를 가진 것들로 선택범위 축소

ex) $('.title').has($(this))


http://api.jquery.com/has/





.is(selector)

선택요소의 성질이 맞는지 boolean 리턴

ex) $('#container').is(':visible')


http://api.jquery.com/is/


'JavaScript > jQuery' 카테고리의 다른 글

Mouse Wheel  (0) 2012.11.27
jQuery Carousel - modular  (2) 2012.11.27
jQuery 플러그인과 그 메서드들을 만들기 위한 기본구조..  (0) 2012.01.01
jQuery 플러그인들 수집  (0) 2011.12.28
jQuery Template  (0) 2011.12.27
jQuery() 함수 인자들 정리  (0) 2011.11.07
Posted by altvirus
,