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

發佈了64 篇原創文章 · 獲贊 1 · 訪問量 2903
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章