質問するログイン新規登録

質問編集履歴

3

コードブロック

2016/06/29 06:44

投稿

tkck
tkck

スコア32

title CHANGED
File without changes
body CHANGED
@@ -19,7 +19,7 @@
19
19
  ###該当のソースコード
20
20
  ```
21
21
  $(function(){
22
- $("#ID").each(function(){
22
+ $("#3").each(function(){
23
23
  if ($(this).html().match(/>>1/)) {
24
24
  $(this).replaceWith("<a class='res onMouse' name='1'>"+$(this).text()+"</a>")
25
25
  }
@@ -27,6 +27,21 @@
27
27
  });
28
28
 
29
29
  ```
30
+ ```
31
+ <div id="1" class="msg">
32
+ ああああ
33
+ </div>
34
+ <div id="2" class="msg">
35
+ <div id="2sub"></div>
36
+ <h1 class = "num">&gt;&gt;1</h1>
37
+ </div>
38
+ <div id="3" class="msg">
39
+ <div id="3sub"></div>
40
+ <a class="res onMouse" name="2">&gt;&gt;2</a>
41
+ ううう
42
+ </div>
43
+
44
+ ```
30
45
  ###試したこと
31
46
  課題に対してアプローチしたことを記載してください
32
47
 

2

test

2016/06/29 06:44

投稿

tkck
tkck

スコア32

title CHANGED
File without changes
body CHANGED
@@ -17,15 +17,16 @@
17
17
  ```
18
18
 
19
19
  ###該当のソースコード
20
+ ```
20
21
  $(function(){
21
- </>$("#ID").each(function(){
22
+ $("#ID").each(function(){
22
23
  if ($(this).html().match(/&gt;&gt;1/)) {
23
24
  $(this).replaceWith("<a class='res onMouse' name='1'>"+$(this).text()+"</a>")
24
25
  }
25
26
  });
26
27
  });
27
28
 
28
-
29
+ ```
29
30
  ###試したこと
30
31
  課題に対してアプローチしたことを記載してください
31
32
 

1

test

2016/06/29 06:40

投稿

tkck
tkck

スコア32

title CHANGED
File without changes
body CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  ###該当のソースコード
20
20
  $(function(){
21
- $("#ID").each(function(){
21
+ </>$("#ID").each(function(){
22
22
  if ($(this).html().match(/&gt;&gt;1/)) {
23
23
  $(this).replaceWith("<a class='res onMouse' name='1'>"+$(this).text()+"</a>")
24
24
  }