Select submit input
Description
The following code shows how to select Form Submit button with Form Submit button selector $(":submit").
Example
<!--from ww w . j av a 2 s.co m-->
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var input = $(":submit");
$('#result').text('jQuery matched ' + input.length + ' elements.');
});
</script>
</head>
<body>
<form>
<input type="submit" />
</form>
<div id="result"></div>
</body>
</html>