定位被选中的select

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

posted @ 2014-01-15 17:00  王翔(kingfly)  阅读(278)  评论(0)    收藏  举报