live() を使用してjQueryによって追加された新しい要素にこのコードを設定しようとしています
var frcode = '<iframe scrolling="no"></iframe>';
$('.foo:nth-child(3n),.foo:last-child').after(frcode);
$('.foo:first').before(frcode);
livequery プラグインを試してみましたがうまくいきませんでした
使ってみたLivequeryプラグイン
$(".foo:nth-child(3n),.foo:last-child").livequery(function(){
$(this).after(frcode);
});
$(".foo:first").livequery(function(){
$(this).before(frcode);
});