The following is the html code: Copy code The code is as follows: New Document < ;META NAME="Description" CONTENT=""> <br><br> var subcat = new Array(); <br> subcat[0] = new Array('Chinese','English','English') <br> subcat[1] = new Array('Chinese','French','French') <br> subcat[2] = new Array('English','Chinese','Chinese') <br> subcat[3] = new Array( 'French','Chinese','中文') . form1.s2.options[0] = new Option('==Please select==',''); //Give the first value <br> for (i=0; i<subcat.length; i) / /legth=20 <BR> { <BR> if (subcat[i][0] == locationid) //[0] [1] First column Second column document.form1.s2.length] = new Option(subcat[i][1], subcat[i][2]);} //Create option <BR> //First time length=1 Because there is == please Select == <BR> //When i=9, length= 10, there are 11 values, because counting from 0, subcat[i][0] ==, the locationid is blocked and then written, <BR> }, <BR> }, <BR> < ;/script> <br><br> <form name="form1" method="post" runat="server"> <br> Secondary linkage: <br><br> <select name="s1 " onChange="changeselect1(this.value)"> <br> <option>==Please select==</option> <br> <option value="English">English</option> <br> <option value="English">French</option> <br> </select> <br><br> <select name="s2"> <br> <option>==Please select==</option> <br> </select> <br> </form> <br>< ;!-- by sundful ending--> <br> </BODY><br></HTML><br><br> </div>