:submit
selectorThe 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" )
:submit
selector Syntax$(':submit')