xxxxxxxxxx
<!DOCTYPE html>
<html>
<title>jQuery :submit选择器示例 - 基础教程(div.cn)</title>
<head>
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$(":submit").css("background", "lime");
});
</script>
</head>
<body>
<form action="">
姓名: <input type="text" name="user"><br>
密码: <input type="password" name="password"><br>
<button type="button">一个按钮</button>
<input type="button" value="另一个按钮"><br>
<input type="reset" value="重置">
<input type="submit" value="提交"><br>
</form>
</body>
</html>