Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: list box


Message #1 by Suzilawati Ismail <suzie@u...> on Tue, 20 Feb 2001 11:48:44 +0800
Dear friends,



I have problems using list box. When I click one of the list in the list 

box, I want the result to appear another list box. I don't have any idea 

how to solve it. Here is the code. anak2.asp also content a list box. 

Please help.



code : anak1.asp



<script language="javascript">



function buat()

{

document.write("<A  target='middle' 

href='javascript:window.location.replace('anak2.asp')></a>")



}

</script>



<form  method="post" action="anak2.asp">

<select name="pilih" size="1" onChange="buat()">

                 <option selected>Sila pilih</option>

                	<option value = "test1">Test1</option>

	<option value = "test2">Test2</option>

               </select>



</form><P>




  Return to Index