省市县三级联动(javascript实现)
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>JavaScript省市县选择</title> <script src="https://files.cnblogs.com/artwl/pccs.js" type="text/javascript"></script> <script type="text/javascript"> window.onload=function(){ var pccs=new province_city_county_select(); pccs.init(); }; </script> </head> <body> <h1>JavaScript省市县选择</h1> <select id="s_province"></select> <select id="s_city"></select> <select id="s_county"></select> </body> </html>
3个dropdownlist s_county
js下载:https://files.cnblogs.com/artwl/pccs.js
http://www.chinacxy.com/JsDetail.aspx?id=15
另一个比较美观的三级联动的例子:
http://xueduany.github.com/KitJs/KitJs/demo/LinkageSelect/demo.html
原文链接:https://www.cnblogs.com/LifeKingcn/archive/2012/08/01/2617749.html
本文来源 爱码网,其版权均为 原网址 所有 与本站无关,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源。
© 版权声明
文章版权归作者所有,未经允许请勿转载。