<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>下拉列表二级联动</title>
<script>
var city=[
["南充","绵阳","成都"],
["沈阳","大连","铁岭"],
["保定","廊坊","唐山"],
["广州","东莞","潮州"]
];
function getCity(){
var p=document.getElementById("prov");
var c=document.getElementById("city");
var PC=city[p.selectedIndex-1];
c.length=1;
for(var i=0;i<PC.length;i++){