본문 바로가기
Programming/Web

두가지 속성을 가지는 클래스를 선택하고 싶을 때

by Chan_찬 2013. 10. 24.
728x90

$(".info, .line")


는 info or line의 의미를 가진다.


$("[class*=info][class*=line]")


는 info and line의 의미를 가진다.




728x90
728x90

'Programming > Web' 카테고리의 다른 글

특정한 시간에 화면 refresh  (0) 2014.03.25
span에 width 적용  (0) 2013.10.24
jQuery 2. 요소 선택 방법 - 셀렉터  (0) 2013.10.24
자바스크립트 focus() 대신 location.hash 사용하기  (0) 2013.08.27
[HTML5] 옵션 patten  (0) 2012.08.01
Buy me a coffeeBuy me a coffee

댓글