回答編集履歴

1

調整

2018/07/20 05:28

投稿

yambejp
yambejp

スコア114829

test CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  .red{color:red;}
8
8
 
9
+ .blue{background-Color:blue;}
10
+
9
11
  ```
10
12
 
11
13
  ```javascript
@@ -13,6 +15,8 @@
13
15
  $(function(){
14
16
 
15
17
  $('.hoge').toggleClass('red',true);
18
+
19
+ $('.hoge').toggleClass('blue',false);
16
20
 
17
21
  });
18
22
 
@@ -24,8 +28,10 @@
24
28
 
25
29
  <div class="hoge">hoge1</div>
26
30
 
27
- <div class="hoge">hoge2</div>
31
+ <div class="hoge blue">hoge2</div>
28
32
 
29
- <div class="hoge" class="red">hoge3</div>
33
+ <div class="hoge red">hoge3</div>
34
+
35
+
30
36
 
31
37
  ```