Javatpoint Logo
Javatpoint Logo

jQuery submit()

jQuery submit event is sent to the element when the user attempts to submit a form.

This event is only attached to the <form> element. Forms can be submitted either by clicking on the submit button or by pressing the enter button on the keyboard when that certain form elements have focus. When the submit event occurs, the submit() method attaches a function with it to run.

Syntax:

It triggers the submit event for selected elements.

It adds a function to the submit event.

Parameters of jQuery submit() event

Parameter Description
Function It is an optional parameter. It is used to specify the function to run when the submit event is executed.

Example of jQuery submit() event

Let's take an example to demonstrate jQuery submit() event.

Test it Now

Output:

Type 'javatpoint' to submit this form finally.

Next TopicjQuery keydown()




Let's Work Together!

Javatpoint is passionate to offer better content to the world. Please mail your contribution to contribute@javatpoint.com. We will show your name and create your user profile. You can contribute the following things:
  • Article on Any Topic (which is not available on Javatpoint)
  • Your Interview Experience on Company
  • Company Interview Questions with Answers
  • Recruitment Process of Company
  • Programs, and Algorithm
  • Videos
  • Test Paper
  • Improve Article

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials