AND operation
a=$('[myc="blue"][myid="1"][myid="3"]');
OR operation, use commas
a=$('[myc="blue"],[myid="1"],[myid="3"]');
As @Vega commented:
a=$('[myc="blue"][myid="1"],[myc="blue"][myid="3"]');
출처: http://stackoverflow.com/questions/10687131/jquery-select-by-attribute-using-and-and-or-operators
'JSP, HTML' 카테고리의 다른 글
redirect / forward (1) | 2017.08.15 |
---|---|
IE 문서모드 설정 (0) | 2016.06.30 |
image 관리 (0) | 2013.02.19 |
JSP_5 (0) | 2013.02.12 |
JSP_4 (0) | 2013.02.06 |