<select onchange="SetChange(this);">
<option>辽宁省</option>
<option>广东省</option>
</select>
<select id="CityID"></select>
<script>
function SetChange(obj)
{
if(obj.options[obj.selectedIndex].text=="广东省")
{
document.all.CityID.length=2;
document.all.CityID.options[0].value="广州";
document.all.CityID.options[0].text="广州";
document.all.CityID.options[1].value="深圳";
document.all.CityID.options[1].text="深圳";
}
}
</script>
<option>辽宁省</option>
<option>广东省</option>
</select>
<select id="CityID"></select>
<script>
function SetChange(obj)
{
if(obj.options[obj.selectedIndex].text=="广东省")
{
document.all.CityID.length=2;
document.all.CityID.options[0].value="广州";
document.all.CityID.options[0].text="广州";
document.all.CityID.options[1].value="深圳";
document.all.CityID.options[1].text="深圳";
}
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货