Automatically selected a option according to the text
<pre><code>&lt;script type="text/javascript"&gt;
var area = {'Mongkok': 1001,'Wan Chai': 1002, 'Sai Kung' : 1003};
&lt;/script&gt;
&lt;select id="area"&gt;
&lt;option value='0'&gt;choose an area&lt;/option&gt;
&lt;option value='1001'&gt;Mong kok&lt;/option&gt;
&lt;option value='1002'&gt;Wan Chai&lt;/option&gt;
&lt;option value='1003'&gt;Sai Kung&lt;/option&gt;
&lt;/select&gt;
&lt;input id='address' type='text' /&gt;
</code></pre>

<p>When I enter text (16 Argyle Street, <strong>Mongkok</strong>) the text box #address;
How to use jquery auto select  <strong>Mongkok option(value:1001)</strong> in #area</p>

<p>According to the address text matching area</p>

<p>thanks a lot..</p>

<p>eg</p>

<pre><code>//when #address's value='16 Argyle Street, Mongkok' 

//addres var match Mongkok
//then &lt;option value="1001" selected="selected"&gt;Mong kok&lt;/option&gt;
</code></pre>
