jQuery Form Events

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.
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:
$("#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 methodsReact when form fields gain or lose keyboard focus — including bubbling focusin/focusout.
| Method | Description | Tutorial |
|---|---|---|
focus | Bind or trigger when an element gains focus — click in, tab to, or .trigger('focus'). | Try it |
focusin | Bubbling 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 |
blur | Bind or trigger when an element loses focus — tab away, click elsewhere, or .trigger('blur'). | Try it |
focusout | Bubbling 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 methodsRespond when the user commits a new value in inputs, selects, and textareas.
Text Selection
2 methodsReact when the user highlights text inside inputs and textareas.
Form Submission
2 methodsIntercept submit for validation, Ajax, or conditional send.
Frequently Asked Questions
Start with focus
Open the focus event guide—syntax, examples, and FAQs.
16 people found this page helpful
