title: Change URL and redirect using jQuery
body: <p>I have some code like this,</p>
  
  <pre><code>&lt;form id="abc"&gt;
    &lt;input type="text" id="txt" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and now I want to redirect like this,</p>
  
  <pre><code>var temp = $("#txt").val();
  url = "http://example.com/" + temp;
  window.location.replace(url);
  // or window.location(url);
  </code></pre>
  
  <p>Is there anyway in jQuery to solve this? It still lets me have <code>url = http://example.com</code>.</p>