The :submit Selector is an inbuilt selector which is used to select the submit button and input element having submitted type field. If the type of button is undefined, most of the standard browsers use it as type=”submit”.
Syntax:
$(":submit")
Example:
<!DOCTYPE html> <html> <head> <script src= </script> <script> $(document).ready(function() { $(":submit").css("background-color", "coral"); }); </script> </head> <body> <center> <h1 style="color:green;">GeeksForGees</h1> <h2>jQuery :submit Selector</h2> <form action="#"> Name: <input type="text" name="user"> <br> Password: <input type="password" name="password"> <br> <br> <input type="reset" value="Reset"> <input type="submit" value="Submit"> <br> </form> </center> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by jQuery :submit Selector are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Recommended Posts:
- jQuery | submit() with Examples
- How to disable form submit on enter button using jQuery ?
- jQuery | * Selector
- jQuery | :contains() Selector
- jQuery | :odd Selector
- jQuery | :even Selector
- jQuery | :last Selector
- jQuery | :has() Selector with example
- jQuery | :gt() Selector
- jQuery | :not() Selector
- jQuery | #id Selector
- jQuery | :lt() Selector
- jQuery | :first Selector
- jQuery | [attribute^=value] Selector
- jQuery | :button Selector
- jQuery | :nth-last-of-type() Selector
- jQuery | [attribute] Selector
- jQuery | [attribute~=value] Selector
- jQuery | :nth-child() Selector
- jQuery | :hidden Selector
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

