change p value on text change

by Prasad Gavande

HTML

<input type="text" id="Name">
<p id="p1">

</p>

JavaScript

$("document").ready(function() {
  $("#Name").keydown(function() {
  var a = $(this).val();
		$("#p1").text(a);
  });
});