日期:2014-05-17  浏览次数:20992 次

关于select标签的问题
<!DOCTYPE html>
<html>
<head>
    <title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <script type="text/javascript" src="jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="sitedata.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var provinceSelector = $("#provinceSelector");
            var citySelector = $("#citySelector");
            var areaSelector=$("#areaSelector");
            GetProvince();
            provinceSelector.change(function () {
                var provinceName = provinceSelector.val();
                if (provinceName != '') {
                    GetCity(provinceName);
                    areaSelector.empty();
                }
                else{
                    citySelector.empty();
                    areaSelector.empty();
                }
            });
            citySelector.change(function () {
                var provinceName = provinceSelector.val();
                var cityName = citySelector.val();
                if(cityName!=''){
                    GetArea(provinceName, cityName);
                }
                else{
                    areaSelector.empty();
                }
            });
        });

        // 获取省份(直辖市)信息
     &