I'm trying to set this code on new elements been added by jQuery using live()
var frcode = '<iframe scrolling="no"></iframe>';
$('.foo:nth-child(3n),.foo:last-child').after(frcode);
$('.foo:first').before(frcode);
I tried livequery plugin but not working good with me
the Livequery plugin i tried to use
$(".foo:nth-child(3n),.foo:last-child").livequery(function(){
$(this).after(frcode);
});
$(".foo:first").livequery(function(){
$(this).before(frcode);
});