Copy codeThe Code is 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> select </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> select </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> select </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> select </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>