divにいくつかのHTMLを出力するjquery行のコードがあります。 HTMLには、postIDというjavascript変数を含むIDを必要とするボタンタグがいくつかあることがあります。jQuery .html関数内のボタンIDタグ内の変数を取得する方法
$('#Message_' + postID).css('visibility','visible').html('').html('I need the buttons to have an ID with the postID variable!<br /><button type="button" id="remindMe_" + postID">Remind Me</button><button type="button" id="cancelMe" + postID">Cancel</button>').prependTo('#buttons_' + postID);
そこで質問はpostID後+前'
と+ '
を入れて、私は
.html('<button type="button" id="remindMe_" + postID">Remind Me</button>')
なぜだろう誰ダウン率この:あなたはすでにこの部分で使用し、全く同じ技術を使用して、ある
?これは正当な質問です! – Sweepster