 
  
   
  
   
  
   
  
   
  
   
  
  <!DOCTYPE html>
<html>
<head>
 <style>
 button { margin:4px; cursor:pointer; }
 input { margin:4px; color:blue; }
 </style>
 <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
 <div>
   <button>Feed</button>
   <button>the</button>
   <button>Input</button>
 </div>
 <input type="text" value="click a button" />
<script>
   $("button").click(function () {
     var text = $(this).text();
     $("input").val(text);
   });
</script>
</body>
</html>