I need my jquery .on to detect the newly added elements from .get.
simple scenario
$('.click').on('click',function(){
alert('clicked');
});
<body>
<div class='content'>
<div class='click'>click here</div>
</div>
</body>
it works fine for the above, but when i added a new
<div class='click'>click here</div>
by
$.get('url',function(data){
$('.content').append(data);
});
the second click wont be detect by the jquery, only the first click is working. when i try to change to .live, its not working entirely.
any alternative way to make this works? thank you.