var replay_id = $(this).text().match(/\d{1,3}/) $(".linkers"+replay_id).append('<a href="#" class = "onMouse">'+replay_id+'</a>');
.appendのセレクタを、クラス名(.linkers)に変数replay_idを結合したいのですが、
うまくいきません。
どなたかご教授いただけませんでしょうか?
回答1件
あなたの回答
tips
プレビュー
Q&A
解決済
退会済みユーザー
総合スコア0
投稿2017/10/27 10:44
var replay_id = $(this).text().match(/\d{1,3}/) $(".linkers"+replay_id).append('<a href="#" class = "onMouse">'+replay_id+'</a>');
.appendのセレクタを、クラス名(.linkers)に変数replay_idを結合したいのですが、
うまくいきません。
どなたかご教授いただけませんでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。