jquery 设置select初始值

<select id="tAddrId" class="tAddrId" style="width:150px"></select>
var value=3;
var text = '东区';
$('<option value="' + value + '" selected>' + text + '</option>').appendTo($("#tAddrId")); 

猜你喜欢

转载自wing123.iteye.com/blog/1983470