在追加后添加
$('#id select').each(function (index, val) { var v = $(val); v.change(function () { var iex = v.get(0).selectedIndex; v.children('option').eq(iex).attr('selected', true).siblings().attr('selected', false); });
//默认选中第一个 v.children('option').eq(0).attr('selected', true).siblings().attr('selected', false); });