How to bind on function of jqury after clling off function of jquery

I have to call same function after clicking a button but not working

After off jquery function trigger event is not calling

How can i call on click function in jquery

Please any one give me suggestion to solve

$(document).ready(function(){
 $("input").on("click",function(){
    $("input").after(" Text marked!");
  });
  $("input").off("click");
  $("button").on("dblclick",function(){
  
    $("input").trigger("click");
  });
});

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<input type="text" value="Hello World"><br><br>

<button>Trigger the select event for the input field</button>