これを以下で実行すると:
$(document).bind('DOMNodeInserted', function(){
$('.new', this).hide();
});
問題なく実行され、.new div が非表示になります。しかし、私は以下のようなことをする必要があります:
$(document).bind('DOMNodeInserted', function(){
// if class .new exists
// do something to the other elements e.g (body, #div, h1, h2, etc) not to .new class
});
どうもありがとう