title: jQuery find and replace text in a variable
body: <p>I have a variable like</p>
  
  <pre><code>var theUrl = 'http://www.google.com/?q=%s';
  </code></pre>
  
  <p>then i have a input box like</p>
  
  <pre><code>&lt;input type="text" id="searchBox" value="" /&gt;
  </code></pre>
  
  <p>and a button like</p>
  
  <pre><code>&lt;input type="button" id="searchButton" value="Search" /&gt;
  </code></pre>
  
  <p>when the button is clicked, i should get a alert where the <strong>%s</strong> of the var <strong>theUrl</strong> should be replaced with the user entered text in the textbox</p>
  
  <p>How to do this ? i think find() function only replaces html elements !</p>
  
  <p>Please help</p>