Skip to content

Commit

Permalink
Updated example to not use console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorton committed Jan 5, 2011
1 parent 366803e commit 83c8e7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example.html
Expand Up @@ -6,10 +6,12 @@
<body>
<h1>jQuery Bind</h1>
<p>
<label for="throttle">On event throttle:</label>
<input id="throttle" />
<span id="throttle-result"></span>
</p>
<p>
<label for="stop">On event stop:</label>
<input id="stop" />
<span id="stop-result"></span>
</p>
Expand All @@ -18,10 +20,10 @@ <h1>jQuery Bind</h1>
<script>
$(function () {
$('#throttle').bindThrottle('keydown', function () {
console.log($(this).val());
$('#throttle-result').html($(this).val());
});
$('#stop').bindStop('keydown', function () {
console.log($(this).val());
$('#stop-result').html($(this).val());
});
});
</script>
Expand Down

0 comments on commit 83c8e7f

Please sign in to comment.