$('button').click(function() { ('p').html code example Example: jquery click event $('#selector').on('click',function(){ //Your code here });