关于javascript select嵌套的问题
<html><head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript">
function fillOptions() {
var slt = document.forms[0].elements["sltSubjects"];
var opt;
opt = new Option();
opt.text = "中国";
opt.value = "china"
slt.options.add(opt);
opt = new Option("美国");
opt.value = "USA";
slt.options.add(opt);
}
window.onload = fillOptions;
</script>
</head>
<body>
<form>
国家:
<select name="sltSubjects" onchange="">
<option value="">请选择</option>
</select>
城市:
<select name="sltSubjects2">
<option value="">请选择</option>
<option value="">北京</option>
<option value="">上海</option>
<option value="">长沙</option>
</select>
</form>
</body>
</html>
就是用个什么,使左边选完中国还是美国后,右边的下拉框自动改出对应的城市了?