$('#button1').click(function() { $(this).html('Click me'); console.log('click'); });