asp怎样实现继续添加按钮的功能

来源:百度知道 编辑:UC知道 时间:2024/06/28 05:19:01
表单中有一个下拉列表,还有一个名字为继续添加的按钮,希望通过点击按钮后,能够弹出一个新的下拉列表,并且可以多次点击,多次生成下拉选框。有点类似于雅虎信箱添加附件那样,希望通过js实现,其它途径也行,但是能够在asp中应用。如果能够实现的话,可以加分!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>

<script>
var num;
num=1;

function addSelect()
{
var objPad = document.getElementById("pad");
var sel = "<select name='se"+num+"' id='se"+num+"'><option value='AAA'>AAA</option><option value='BBB'>BBB</option></select><br />