butonc click jquery

JavaScript
 $('h1').click(function () {
        $(this).css('color', 'blue')
    });
Source

Also in JavaScript: