回答編集履歴

2

タイポーーー

2016/08/05 05:53

投稿

asahina_dev
asahina_dev

スコア610

test CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
  ```js
42
42
 
43
- $("li:has(.type01,.option01):has(.type01,.option01)"); // ノーテスト
43
+ $("li:has(.attribute01,.attribute02):has(.type01,.option01)"); // ノーテスト
44
44
 
45
45
 
46
46
 

1

CASE3

2016/08/05 05:53

投稿

asahina_dev
asahina_dev

スコア610

test CHANGED
@@ -21,3 +21,31 @@
21
21
  $(".when1.when2")
22
22
 
23
23
  ```
24
+
25
+
26
+
27
+
28
+
29
+ # CASE 3 OR AND OR [has](http://semooh.jp/jquery/api/selectors/%3Ahas/selector/)
30
+
31
+ 「attribute01」「attribute02」に加え、「type01」「option01」にチェックをした場合、
32
+
33
+ 「attribute01」でかつ、「type01」か「option01」を持つものと、
34
+
35
+ 「attribute02」でかつ、「type01」か「option01」を持つものを表示
36
+
37
+
38
+
39
+
40
+
41
+ ```js
42
+
43
+ $("li:has(.type01,.option01):has(.type01,.option01)"); // ノーテスト
44
+
45
+
46
+
47
+ ```
48
+
49
+
50
+
51
+