回答編集履歴
1
loadのcallbackで実行するように修正したものを追記しました。
answer
CHANGED
@@ -6,4 +6,17 @@
|
|
6
6
|
$(this).find(">span").html($(this).find(">span>span").text());
|
7
7
|
});
|
8
8
|
|
9
|
+
```
|
10
|
+
|
11
|
+
loadのcallbackで実行するように修正
|
12
|
+
|
13
|
+
```javascript
|
14
|
+
$(".checkBoxListLink > li > a").each(function(i) {
|
15
|
+
var url = $(this).attr("href");
|
16
|
+
$(this).children("span").load(url + " #sort_val", function(){
|
17
|
+
$(".checkBoxListLink > li > a > span").each(function(){
|
18
|
+
$(this).html($(this).find(">span").text());
|
19
|
+
});
|
20
|
+
});
|
21
|
+
});
|
9
22
|
```
|