I have two selected lists in a form. The data in the second list will change 
accordingly when the selected item in the first 
list is changed. My question is how to get the second selected item for the formbean. 
I use a framworks similar with 
Struts. Here is the code segment:

  <select name="field01" onchange="SetField02()">
    <option <%= Pform.field01SelectionAttr("-1") %> value="-1">-1</option>
    <option <%= Pform.field01SelectionAttr("0") %> value="0">0</option>
    <option <%= Pform.field01SelectionAttr("1") %> value="1">1</option>
    <option <%= Pform.field01SelectionAttr("2") %> value="2">2</option>
  </select>
  <select name="field02">
        <option value="0" selected >--------</option> 
  </select>

<script language=javascript>

function SetField02(){
        //...   
        return ;
}

</script>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to