動的にjQuery
追加する関数がありますa
が、この要素をモーダルとして使用したい場合は使用できませんが、何も起こりません。
php
すべてを使用して同じ要素を追加すると、正常に機能します。
私の推測では、jQuery.modal
この要素は表示されませんが、これを修正する方法はありますか?
私の関数は次のようになります。
$.each(respJSON, function(){
$('#poll-questions').append(
$('<li>').append(
$('<a>').attr('href', prefix + this.id).attr('class', 'modal')
.attr('rel', '{handler: "iframe", size:{x:600, y:500}}')
.append($('<span>').append(this.question)
)));
});