jQuery3を使用してみたのですが、show hideの使い方が以前と変わっていたので記録しておきます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<!-- jquery --> <link rel="stylesheet" href="themes/base/jquery.ui.all.css"> // 返信テキストリンク(▼返信)クリック時の返信フォーム表示 $(document).on('click', '[id^=reply_text_button_]', function(){ var commentId = $(this).attr('id').replace('reply_text_button_', ''); // 返信テキストリンクを非表示にする $(this).hide(); // 返信フォームを表示する $('#reply_form_area_' + commentId).show( 'blind', '', 1000 ); }); |
このblindというアニメーションを使用してみたら結構かっこよかったので気に入っています。
使用方法は上の通りです。
以上ジョナサンからでした。