This is my HTML and jQuery Code. When I click the button, I don’t get any response from the browser.
<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')
});
The online tutorial I was following.

You should refer to
$(this)inside your callback:Anyway, an
<input>is a part of a<form>element – you should bind thesubmitevent of the form itself, and not a single element.If you just want a button, stick with
<button>.