Need help)

Need help)

Hi. Whats up? I an mewbie and just cant understand how to finish my work. I need to create input by touble clicking on td and after "enter" save a changed. So all is ok, but after pressing enter, all tds being chaged. so how can i change only one? 
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>

  5. <style type="text/css">
  6.   .ta{border: 2px solid black;
  7.     border-collapse: collapse;}
  8.     tr td {border: 2px solid black;
  9.     border-collapse: collapse; width: 100px;
  10.     height: 20px;}
  11. </style>
  12. </head>
  13. <body>
  14. <table class="ta">
  15.    <tr class="tr1">
  16.      <td > Name: </td>
  17.       <td class="td1" > Vito </td>
  18.    </tr> 
  19.    <tr class="tr1">
  20.      <td > Surname: </td>
  21.      <td class="td1"> Scaletta </td>
  22.    </tr> 
  23.    <tr class="tr1">
  24.      <td > Age: </td>
  25.      <td class="td1"> 21 </td>
  26.    </tr> 
  27.   </table>

  28. </body>
  29. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  30. <!-- <script src="js/script.js"></script> -->
  31. <script src="js/script1.js"></script>
  32. </html>

  33. // now starts jq code))

  34. $(document).ready(function(){
  35. $(".td1").dblclick(function(){
  36. var po=$(this).html()
  37. $(this).html("")
  38. $(this).append("<input class='i1'>")
  39. var inp=$(this).val()
  40. // $(this).empty()
  41. // $(this).html(inp)
  42. // $(".i1").val(po)

  43. })
  44. $("body").change(function(){
  45. // alert("The text has been changed.")
  46. var p = $(".ta").find("input").val()
  47. $(".td1").each(function(){
  48. $(this).html(p)

  49. })
  50. })
  51. })