jQuery .click() Event

In this tutoral we are learn about jQuery Click Event. this is most useful jquery event. usign this event you can change on any where on click. you can use click event with css class and id. we are also use this syntax ".on( "click", handler )".

nicesnippets.com giving you best way of implementation of jquery .click() Event. we are giving you free source code with live example.

Example Demo

0

Js Code

$(document).ready(function(){
    $(".click_number_btn").click(function(){
    	var number = $('.number').html();
        $('.number').html( parseInt(number) + 1 );
    });
});

Html Code

<h1 class="number">0</h1>
<button class="click_number_btn">Click For Change Number</button>
Add