Value transfer in two boxes. Good effect Copy code The code is as follows: <br><br>function $(value) <br>{ <br> return document.getElementById(value); <br>} <br>function ch(s){ <br> var p = new Array(0,1,2); <br> p[0] = 'University'; <br> p[1] = 'High School'; <br> p[2] = 'Junior High School'; <br> if(s.value=='0'){ <br> $('n2').options.length = 0; <br> $('n2'). options.add(new Option(p[0],p[0])); <br> } <br> if(s.value=='1'){ <br> $('n2').options. length = 0; <br> $('n2').options.add(new Option(p[1],p[1])); <br> } <br> if(s.value=='2' ){ <br> $('n2').options.length = 0; <br> $('n2').options.add(new Option(p[2],p[2])); <br> } <br>} <br> < ;tr> university ; a 大学 高中 初中 a [Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute ]