Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <input id="input">
  <div id="text"></div>
</body>
</html>
 
$(function () {
  var $text = $('#text');
  var $input = $('#input');
  $input.on('keydown', function () {
    setTimeout(function () {
      $text.html($input.val());
    }, 0);
  });
})
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers