.submit() Event

Syntax

$(selector).submit(function)

Description

".submit()" event is executed when the form is submitted. It only works with form elements. Below is the simple example to show an alert when the form is submitted.

Example Code

Result:


Name :
Age :
DOB :
Comments :


Ask Questions

Ask Question