<script>var countryId = "{$user['country']}";$("select[@name='country'] option[value='" + countryId + "']").attr('selected','selected');</script>