Click function alert in Jquery code example Example: css click event jquery $('h1').click(function () { $(this).css('color', 'blue') });