I use append function in order do add some div into another element

('#test-append').append("<div class='new_div'><b>some text</b></div>")

everything is going fine and I can see the added div,`but I also need after that to access the div selector in order to do something with this div for example to hide it so i use the folowing

$('.new_div').click(function(){
            do somthing here
        });

but it is not working even if I just use simple alert('hi') call. It seems like jquery doesn't recognize the append class (I also tried it with Id and I get the same result)

I will appreciate some help on this issue

Thanks

Edit
Report