JQuery - OnKeyUp

by Faisal Khan Janjua

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("input").keyup(function(){
        $('p').text($('input').val());
    });
});
</script>
</head>
<body>

Enter your name: <input type="text">

<p></p>

</body>
</html>