这是我的HTML和jQuery代码。当我点击按钮时,我没有从浏览器得到任何回应。jQuery:提交选择器不加载
<html>
<head>
<title>jQuery Test</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/toggle.js"></script>
</head>
<body>
<input type="submit" value="button">
</body>
</html>
jQuery的
$(':submit').click(function() {
// Act on the event
$('submit').attr('Please wait', 'value')
});
网上的教程,我以下。
fyi':submit'已被弃用http://api.jquery.com/category/deprecated/ –
哇,所以很难保持更新所有这一切哈哈。 Thanks @wirey。 – AppSensei