title: How to redirect to another link with javascript in a wordpress site?
body: <p>I have a wordpress geo theme driven website where user can search for events. When I start to write anything in the text box for searching event, then a auto completer suggestion  comes in (which is a plugin). After clicking any suggestion  it fills the textbox, and submits a form to index page. </p>
  
  <p>But I need, after clicking the suggestion  it will fill the text box(which is currently OK) and redirect the page to another link to same site like this: <code>http://sitename.com/events/text-comes-from-text-box</code>.<br>
  <strong><em>"text-comes-from-text-box"</em></strong> is the text which will come form the text box after clicking the suggestion. </p>
  
  <p>Suggestions come from a plugin and suggestions come to this page "review_searchform.php". Suggestions come as <code>&lt;div id='ac_results'&gt;&lt;ul&gt;&lt;li&gt;</code>.
  I am trying to find out,if I click on the <code>&lt;li&gt;</code> which is coming from the plugins is responding. For do that I used this code in 
  <code>review_searchform.php</code> this page, but it's not working. My code is below,</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      jQuery("#ac_results ul li").click(function() {
      alert("test 2");
  
  });
  </code></pre>
  
  <p>
  If it would work, then I would add redirect code here. 
  I think to solve this problem, it does not need PHP or WordPress functions. It only needs Javascript/jQuery.</p>