title: JQuery html string input box
body: <p>I have this function: </p>
  
  <pre><code>function msj(str) {
  //    display = document.getElementById("txt"); // DOM
  //    nodo = document.createTextNode(str);
  //    display.replaceChild(nodo,display.firstChild);
  $("#txt").html(str); // jQuery
  }
  </code></pre>
  
  <p>The message is displayed here:</p>
  
  <pre><code>&lt;div id="txt"&gt;Guess the number between 1 and 10&lt;/div&gt;
  </code></pre>
  
  <p>Then, I want to display the message into a input text form. Anyone knows how to do it?</p>
  
  <p>Many thanks.</p>