二级城市插件
1.首先引入jquery
<script type="text/javascript" src="js/jquery-1.8.3.js" ></script>
2.html
<body><select id="province"></select><select id="city"></select><input type="hidden" id="hidpro" value="请选择省" /><input type="hidden" id="hidcity" value="请选择市" />
</body>
3.引进ProvinceAndCity.js
<script type="text/javascript" src="js/ProvinceAndCity.js" ></script>
4.js调用
<script>//绑定省市var pro = $.trim($("#hidpro").val());var city = $.trim($("#hidcity").val());if (pro == "请选择省" || city == "请选择市") {ProvinceInit(