省市县三级联动(javascript 实现)

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>JavaScript省市县选择</title>
    <script src="https://files.cnblogs.com/artwl/pccs.js" type="text/javascript"></script>
    <script type="text/javascript">
        window.onload=function(){
            var pccs=new province_city_county_select();
            pccs.init();
        };
    </script>
</head>
<body>
    <h1>JavaScript省市县选择</h1>
    <select id="s_province"></select>
    <select id="s_city"></select>
    <select id="s_county"></select>
</body>
</html>

 3个dropdownlist id="s_province"
                         id="s_city"
                         id="s_county

 js下载:https://files.cnblogs.com/artwl/pccs.js

 http://www.chinacxy.com/JsDetail.aspx?id=15

 

 

另一个比较美观的三级联动的例子:

http://xueduany.github.com/KitJs/KitJs/demo/LinkageSelect/demo.html

 

原文地址:https://www.cnblogs.com/LifeKingcn/p/2617749.html