jQuery Tutorial Tutorials - jQuery :submit selector

:submit selector

The jQuery :submit selector is used to select all elements of type submit.

$( "input:submit" ) is equivalent to $( "input[type=submit]" ).
But
$( ":submit" ) is equivalent to $( "[type=submit]" ) and $('button') on some browsers.
So
always specify the TagName,use $( "input:submit" )

jQuery :submit selector Syntax

$(':submit')

jQuery :submit selector Examples

In below example,We will hightlight all submit inputs.

Try now

Date:2019-08-19 02:18:08 From:www.Lautturi.com author:Lautturi