`
sh2015yao
  • 浏览: 135999 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

jQuery 省市联动

阅读更多

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="jquery-1.4.2.js"></script>
<script type="text/javascript" src="location.js"></script>
<script type="text/javascript" src="YlChinaArea.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$(".ChinaArea").jChinaArea({
		 aspnet:true,
		 s1:"北京市",//默认选中的省名
		 s2:"北京市",//默认选中的市名
		 s3:"朝阳区"//默认选中的县区名
	})
})
</script>
<title>无标题文档</title>
</head>

<body>
<div class="ChinaArea">
     <select id="province" name="province" style="width: 100px;"></select>
    <select id="city" name="city" style="width: 100px;"></select>
     <select id="county"  name="county" style="width: 120px;"> </select>         
  </div>
</body>
</html>

 转载于:http://hi.baidu.com/dpxdqx/blog/item/0e6461df1446271b63279898.html

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics