定位被选中的select

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

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