Pre-select option by fetching data from DB via PHP with ajax
<p>I have a select tag, which option values come from a database via PHP using ajax. The previously selected value is saved in the DB.</p>

<p>I want to display a select showing the previously selected value (which is saved in the DB).</p>

<p>This is the HTML code</p>

<pre><code>&lt;select id='country'&gt;&lt;/select&gt;
</code></pre>

<p>This is the JS code (ajax getting all country list)</p>

<pre><code>$.ajax({
    url: 'country.php',
    scriptCharset: 'ANSI',              
    success:function(result) {
        $('#country').append(result);
    }
});
</code></pre>

<p>Let's say I want to show country which value is 27, how can I achieve that?</p>
