Menu | dropdown
<title>List</title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<script language= "JavaScript" >
<!--
var Onecount;
onecount=0;
subcat = new Array ();
Subcat[0] = new Array ("Xuhui District", "01", "001");
SUBCAT[1] = new Array ("Jiading", "01", "002");
SUBCAT[2] = new Array ("Huangpu", "01", "003");
SUBCAT[3] = new Array ("Nanchang", "02", "004");
SUBCAT[4] = new Array ("Jiujiang", "02", "005");
SUBCAT[5] = new Array ("Shangrao", "02", "006");
onecount=6;
function Changelocation (LocationID)
{
document.myform.smalllocation.length = 0;
var Locationid=locationid;
var i;
Document.myform.smalllocation.options[0] = new Option (' = = = = = = = = = ALL Regions = = = = '];
for (I=0;i < Onecount i++)
{
if (subcat[i][1] = = LocationID)
{
Document.myform.smalllocation.options[document.myform.smalllocation.length] = new Option (subcat[i][0] , subcat[i][2]);
}
}
}
-->
</script>
<body>
<form name= "MyForm" method= "POST" >
<select name= "Biglocation" >
<option value= "selected>" Shanghai </option>
<option value= > Jiangxi </option>
</select>
<select name= "Smalllocation" >
<option selected Value= "" >== All areas ==</option>
</select>
</form>
<script language= "JavaScript" >
<!--
Changelocation (Document.myform.biglocation.options[document.myform.biglocation.selectedindex].value);
-->
</script>
</body>