引入area.js文件
<script type="text/javascript" src="inc/script/area.js"></script>
调用方法:
region_init()
相关参数:
共有3个必填参数,4个可选参数:
1、规定初始化省级的select元素id,必填
2、规定初始化市级的select元素id,必填
3、规定初始化区级的select元素id,必填
4、省级默认值
5、市级默认值
6、区级默认值
7、选项值类型:0文本 1数字编号
调用实例:
<select id="areap"></select>
<select id="areac"></select>
<select id="aread"></select>
<script type=" type="text/javascript">
region_init('areap','areac','aread')
</script>
<select id="areac"></select>
<select id="aread"></select>
<script type=" type="text/javascript">
region_init('areap','areac','aread')
</script>