Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
  <script>
    $(function () {
      $("#m1").keydown(function(){
        that=this;
        setTimeout(function(){
          $("#m1s").text(
            that.value ? that.value : "<empty>"
          )
        },0)
      });
    }
    );
  </script>
</head>
<body>
  <label for="m1">Test input: </label><input id="m1" placeholder="type here" />
  <hr>
  <span id="m1s">&lt;empty&gt;</span>
  <br />
  <br />
  <p><a href="http://andisnotnull.blogspot.com/2013/03/jquery-live-input-value-reading-keydown.html">Explain me</a></p>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers