l楼主你好,我想实现一种效果,图片如下 能够把省市区选择的结果适时显示在上面那个文本框里,文本框变量的名字叫district 那个级联菜单是靠js实现的,代码如下 <script language="javascript" src="http://localhost/PCASClass.js"></script> <fieldset style="padding:5px;"> <legend>省市区选择</legend> 请依次点选: <select name="province"></slect> <select name="city"></slect> <select name="area"></slect><br> </fieldset> <script language="javascript" defer>
new PCAS("province","city","area","请选择省","请选择市市","请选择区或县"); new PCAS("province1","city1","area1","吉林省","吉林市","龙潭区"); new PCAS("province2","city2","area2","江苏省","苏州市","沧浪区");
new PCAS("province3","city3","area3"); new PCAS("province4","city4","area4","江苏省"); new PCAS("province5","city5","area5","江苏省","苏州市"); new PCAS("province6","city6","area6","江苏省","苏州市","沧浪区"); </script> 该怎么修改实现我想的功能呢?
|