on click function jquery to change the css code example
Example: css click event jquery
$('h1').click(function () {
$(this).css('color', 'blue')
});
$('h1').click(function () {
$(this).css('color', 'blue')
});