<body>
<form id="form1" runat="server">
<div id="div1" class="a1" name="aaa">
<input type="text" class="a3" name="name" value="3" />
<input type="text" name="name" value="4" />
</div>
<input type="button" onClick="add()" value="增加">
</form>
</body>
<script>
function add() {
var a = document.getElementById("div1"); //定位
var liElement = document.createElement('span'); // 创建元素
var inputElement = document.createElement('input'); //创建input
inputElement.id = "btnTxt";
inputElement.type = "text";
inputElement.name = "txtJump";
inputElement.style.width = "30px"
liElement.appendChild(inputElement);
a.appendChild(liElement);
var inputElement = document.createElement('input'); //创建input
inputElement.type = "button";
inputElement.id = "btnJump";
inputElement.name = "jumpBtn";
inputElement.value = "跳转";
liElement.appendChild(inputElement);
a.appendChild(liElement);
}
</script>