Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
jQuery

Click Event in jQuery

Handle click interactions on buttons and links.

Click Event in jQuery — a practical guide to jQuery click event with clear examples you can reuse in real projects.

jQuery Tutorial Series (18/101). Prefer one article? Read the complete jQuery tutorial.

Short description

Prevent default when needed for SPA-like behavior.

Click

$('#save').on('click', function (e) {
  e.preventDefault();
  $(this).text('Saved');
});

Leave a reply

Your email address will not be published. Required fields are marked *