Change value with Val()

by Prasad Gavande

HTML

<button id="b1">
  PRasad

</button>
<input type="text" id="t1">

JavaScript

$("document").ready(function() {
  $("#b1").click(function() {
    $("#t1").prop("value","prasad");
  });
});