jQuery autocomplete two instances on the same page
<p>I have two input fields on my page which one of them is for data A {list of cities from a db} and a second input field for data B {list of name from a db}</p>

<p>The problem is that when both are initiated , then the second autocomplete source appear on the second one.</p>

<p>Here is some code:</p>

<pre><code>jQuery("#cities_input").autocomplete({
        source: citiesResFromDb
    });

jQuery("#names_input").autocomplete({
        source: namesResFromDb
    });
</code></pre>

<p>How can I use or init .autocomplete() on two different input fields without affecting each other?</p>
