<button id="first">Click me first</button>
$('#first').click(function(){
$('body').append('<button id="second">Now click me</button>');
});
$('#second').click(function(){
$(this).hide();
});
#first
クリックする#second
と追加されます。クリックする#second
と隠れて欲しいです。
なぜこれが機能しないのですか?