回答編集履歴
2
調整
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
$(function(){
|
5
5
|
$('.hide').hide();
|
6
6
|
$('.readmore-button').on('click',function(){
|
7
|
-
$(this).
|
7
|
+
$(this).text($('.hide',$(this).prev()).toggle().is(':hidden')?"Read more":"Close");
|
8
8
|
});
|
9
9
|
});
|
10
10
|
</script>
|
1
調整
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
$(function(){
|
5
5
|
$('.hide').hide();
|
6
6
|
$('.readmore-button').on('click',function(){
|
7
|
-
$(this).html($(this).prev()
|
7
|
+
$(this).html($('.hide',$(this).prev()).toggle().is(':hidden')?"Read more":"Close");
|
8
8
|
});
|
9
9
|
});
|
10
10
|
</script>
|