Thursday 25 October 2012

jquery for keyup function typing aswell append the datas to screen

<html>
<head>
  <style>

  p { color:blue; margin:8px; }
  </style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<input type="text" value="some text"/>
  <p></p>
<script>
    $(document).ready(function() {
    $("input").keyup(function () {
      var value = $(this).val();
      $("p").text(value);
    }).keyup();
    });
</script>

</body>
</html>

No comments:

Post a Comment