javascript search() working problem
<p>I have an jquery autosuggest plugin in which when i type ex. <code>Korea</code> then it show 2 results i.e.
<code>Korea (North)</code> &amp; <code>Korea (South)</code> but when i type <code>Korea (</code>, its not displaying any result where it had to show both <code>Korea (North)</code> &amp; <code>Korea (South)</code>.</p>

<p>After searching in the code for the error then i found a <code>search()</code> function which search for the type string in the results..</p>

<p>means:
<code>Korea (</code> in <code>Korea (North)</code> &amp; <code>Korea (South)</code></p>

<p>and i think this search function stops at bracket <code>(</code> and i don't know why???</p>

<p>Please, suggest a search() function to remove this error..</p>

<p>code:::</p>

<pre><code>str.search(query) != -1
</code></pre>

<p>where: str = one result at a time i.e. <code>Korea (North)</code>
       query = entered string i.e. <code>Korea (</code> </p>
