When I create a new link dynamically, I can't catch the click event
$("#div").html("<a href="#" id="new">new link</a>);
$("#new").click(function(e) { //doesn't catch
e.preventDefault();
alert('click');
}
How can I bind handlers to dynamic elements?