我的守则如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.7.js" type="text/javascript"></script>
<script>
$( target ).submit(function()
{
alert( Handler for .submit() called. );
});
</script>
</head>
<body>
<form id="target" method="post">
<input type="text" value="Hello there" />
<input type="submit" value="Go" />
</form>
<div id="other">
Trigger the handler
</div>
</body>
</html>