<button id="first">Click me first</button>
$('#first').click(function(){
  $('body').append('<button id="second">Now click me</button>');
});
$('#second').click(function(){
  $(this).hide();
});
When #first is clicked, #second gets appended. When #second gets clicked, I want it to 
hide itself.
Why isn't this working?
 
     
     
     
     
     
    