jQuery submit() Method
jQuery submit() Method
The submit event is used to occur when a form is submitted. It is only used on form elements. The submit() method triggered the submit event. We can attach a function to run when a submit event occurs.
Syntax:-
Its syntax is:- $(selector).submit(function)
Further Explanation:-
Parameter | Description |
---|---|
function | Optional. Specifies the function to run when the submit event is triggered |