Skip to content
Justice Tech School

Form Events

submit, change, focus, blur and input respond to forms.

Example
$("form").on("submit", function (e) {
  e.preventDefault();
  console.log($(this).serialize());
});
$("input").on("input", function () {});

Exercise

Serialize.

$("f").()

Quiz Test

What does serialize build?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.