回答編集履歴
2
訂正
test
CHANGED
@@ -5,3 +5,23 @@
|
|
5
5
|
$('.hoge .hoge2').clone().empty().text('詳しく見る').insertBefore('.hoge3')
|
6
6
|
|
7
7
|
```
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
**追記訂正**
|
14
|
+
|
15
|
+
ちがった、こうですね。
|
16
|
+
|
17
|
+
```javascript
|
18
|
+
|
19
|
+
$('.hoge').each(function(){
|
20
|
+
|
21
|
+
var target = $(this);
|
22
|
+
|
23
|
+
$('.hoge2', target).clone().empty().text('詳しく見る').insertBefore($('.hoge3',target));
|
24
|
+
|
25
|
+
});
|
26
|
+
|
27
|
+
```
|
1
typo
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
こんな感じで。
|
2
2
|
|
3
|
-
```javascipt
|
3
|
+
```javascript
|
4
4
|
|
5
5
|
$('.hoge .hoge2').clone().empty().text('詳しく見る').insertBefore('.hoge3')
|
6
6
|
|