<html:select property="CID" onchange="customer()">
             <html:option value="">请选择车间</html:option>
             <html:options collection="estatelist" property="value" labelProperty="label" />
       </html:select>

解决方案 »

  1.   

    就你源码的写法,使用OnChange()似乎没有太大的意义,也许你的源码没有写全,Select的联动一般是两个以上的Select中使用,就是第二个Select需要用到第一个Select的property 值 。
    隐藏一个Form,用于Onchange()的提交
    <form name="changeList" method="post" action="">
    <input type="hidden" name ="CID"/>
    </form>
    function  change(){
      document.changeList.CID.value =document.myform.CID.value;
      document.changeList.submit();
      }
    提醒:你的属性命名似乎不太好,建议改成 cID, estatelist 需要使用Session来传递!
      

  2.   

    shuhw(寒冰) <html:options property=>这都是一些属性呀,如何来实现选择一次下拉菜单就可以刷新一次页面