This article describes the JS text box to append multiple Drop-down box Value example, the need for friends can refer to the
copy code code as follows:
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta name= "generator" content= "EditPlus" >
<meta name= "Author" content= "" >
<meta name= "Keywords" content= "" >
<meta name= "Description" content= "" >
<script language= "JavaScript" >
function doit (ofrm) {
//ofrm.t1.value=parseint (Ofrm.s1.value) +parseint (ofrm.s2.value) +parseint (ofrm.s3.value) +parseint ( Ofrm.s4.value);
Ofrmofrm.t1.value=ofrm.s1.value+ofrm.s2.value+ofrm.s3.value+ofrm.s4.value;
}
</script>
</HEAD>
<BODY>
<form name= "Tfrm" >
<select name= "S1" onchange= "Javascript:doit" (this.form); " >
<option value= "*" selected> please choose </option>
<option value= "1" >1</option>
<option value= "2" >2</option>
<option value= "3" >3</option>
</select>
<select name= "S2" onchange= "Javascript:doit" (this.form); " >
<option value= "*" selected> please choose </option>
<option value= "1" >1</option>
<option value= "2" >2</option>
<option value= "3" >3</option>
</select>
<select name= "S3" Onchange= "Javascript:doit" (this.form); " >
<option value= "*" selected> please choose </option>
<option value= "1" >1</option>
<option value= "2" >2</option>
<option value= "3" >3</option>
</select>
<select name= "S4" onchange= "Javascript:doit" (this.form); " >
<option value= "*" selected> please choose </option>
<option value= "1" >1</option>
<option value= "2" >2</option>
<option value= "3" >3</option>
</select>
<input type= "text" name= "T1" "value=" ">
</form>
</BODY>
</HTML>