title: Passing a typed value to a link as a parameter
body: <p>Trying to build a parameter url with the same text been typed into this text box. Not working is here a better why to do this?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;script src="jquery.js"&gt;&lt;/script&gt;
      &lt;script&gt;
        $("#texto").on('keypress change', function(event) {
          var data=$(this).val();
          $("#go").text(data);
        });
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;input type="text" value="" id="texto"/&gt;
      &lt;a href="home.php?where=&lt;div id='go'&gt;&lt;/div&gt;"&gt;Home&lt;/a&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>