Permalink
Browse files

First commit of the bind bonuses

  • Loading branch information...
0 parents commit 3782d584754615701bcd52c97657f72753e7a757 @lukemorton committed Jan 4, 2011
Showing with 30 additions and 0 deletions.
  1. +29 −0 example.html
  2. +1 −0 jquery.bind.js
@@ -0,0 +1,29 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Some jQuery Bind Bonus</title>
+ </head>
+ <body>
+ <h1>jQuery Bind</h1>
+ <p>
+ <input id="throttle" />
+ <span id="throttle-result"></span>
+ </p>
+ <p>
+ <input id="stop" />
+ <span id="stop-result"></span>
+ </p>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
+ <script src="jquery.bind.js"></script>
+ <script>
+ $(function () {
+ $('#throttle').bindThrottle('keydown', function () {
+ console.log($(this).val());
+ });
+ $('#stop').bindStop('keydown', function () {
+ console.log($(this).val());
+ });
+ });
+ </script>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 3782d58

Please sign in to comment.