这篇文章介绍了JS文本框追加多个下拉框的值的例子
有需要的朋友可以参考一下
复制代码 代码如下:
<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){
//ofrmtvalue=parseInt(ofrmsvalue)+parseInt(ofrmsvalue)+parseInt(ofrmsvalue)+parseInt(ofrmsvalue);
ofrmofrmtvalue=ofrmsvalue+ofrmsvalue+ofrmsvalue+ofrmsvalue;
}
</script>
</HEAD>
<BODY>
<form name="tfrm">
<select name="s" onChange="javascript:doit(thisform);">
<option value="*" selected>请选择</option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
<select name="s" onChange="javascript:doit(thisform);">
<option value="*" selected>请选择</option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
<select name="s" onChange="javascript:doit(thisform);">
<option value="*" selected>请选择</option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
<select name="s" onChange="javascript:doit(thisform);">
<option value="*" selected>请选择</option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
<input type="text" name="t" value="">
</form>
</BODY>
</HTML>