Jquery Val

Find the value of an input box.

by aaronk85

HTML

<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <input type="text" value="some text"/>
  <p></p>
</body>
</html>

CSS

p { color:blue; margin:8px; }

JavaScript

$("input").keyup(function () {
      var value = $(this).val();
      $("p").text(value);
    }).keyup();