jQuery Form Events

Beginner
7 min read
Updated: Nov 2026
14 method guides
Method index

About This Index

This page is the jQuery Form Events index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.

Learn the jQuery overview on /jquery. Use this page when you need a form event such as focus, change, or submit.

Beginner path.

Start with focus and blur, then change and submit—prefer .on() over the legacy shorthands.

How to Call a Form Event

Bind with .on() and fire with .trigger()—same pattern as click or keydown:

jQuery
$("#email").on("focus", function () {
  $(this).addClass("active");
});

$("#email").on("blur", function () {
  // validate when the user leaves the field
});

$("form").on("focusin", "input", function () {
  console.log("field focused:", this.name);
});

$("#qty").on("change", function () {
  console.log($(this).val());
});

$("form").on("submit", function (event) {
  event.preventDefault();
  // Ajax submit…
});

jQuery Form Events Table

All Form Events guides in this jQuery tutorial series (14 tutorials).

Focus & Blur

8 methods

React when form fields gain or lose keyboard focus — including bubbling focusin/focusout.

MethodDescriptionTutorial
focusBind or trigger when an element gains focus — click in, tab to, or .trigger('focus').Try it
focusinBubbling focus event — listen on a parent when any nested input gains focus.Try it
.focus()Deprecated shorthand — prefer .on('focus') and .trigger('focus') (since 3.3).Try it
.focusin()Deprecated shorthand — prefer .on('focusin') and .trigger('focusin') (since 3.3).Try it
blurBind or trigger when an element loses focus — tab away, click elsewhere, or .trigger('blur').Try it
focusoutBubbling blur event — listen on a parent when any nested input loses focus.Try it
.focusout()Deprecated shorthand — prefer .on('focusout') and .trigger('focusout') (since 3.3).Try it
.blur()Deprecated shorthand — prefer .on('blur') and .trigger('blur') (since 3.3).Try it

Value Changes

2 methods

Respond when the user commits a new value in inputs, selects, and textareas.

MethodDescriptionTutorial
changeFire when an input, select, or textarea value changes — on blur for text, immediately for select/checkbox.Try it
.change()Deprecated shorthand — prefer .on('change') and .trigger('change') (since 3.3).Try it

Text Selection

2 methods

React when the user highlights text inside inputs and textareas.

MethodDescriptionTutorial
selectFire when the user highlights text in an input or textarea — not the HTML select dropdown.Try it
.select()Deprecated shorthand — prefer .on('select') and .trigger('select') (since 3.3).Try it

Form Submission

2 methods

Intercept submit for validation, Ajax, or conditional send.

MethodDescriptionTutorial
submitFire when the user submits a form — validate, preventDefault, or send with Ajax.Try it
.submit()Deprecated shorthand — prefer .on('submit') and .trigger('submit') (since 3.3).Try it

Frequently Asked Questions

They respond to form control interaction: focus/blur when a field gains or loses focus, change when a value is committed, select when text is highlighted, and submit when a form is sent. Bind them with .on() and .off().
Prefer .on('blur', handler) and .trigger('blur'). The .blur(), .focus(), .change(), and .submit() shorthands are deprecated since jQuery 3.3.
blur fires whenever focus leaves—even if the value is unchanged. change fires only when the value actually changed (on blur for text inputs; immediately for checkboxes and selects).
focus and blur do not bubble natively. focusin and focusout do—so you can listen on a parent form for any nested field. jQuery also maps delegated blur/focus to these bubbling events.
Start with focus and blur, then change and submit. Prefer .on() over the legacy shorthands.

Start with focus

Open the focus event guide—syntax, examples, and FAQs.

focus tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

16 people found this page helpful