公告
财富商城
积分规则
提问
发文
2019-01-25 08:09发布
冷血范
By default I have 5 textboxes. When a user clicks on a button, one textbox should be added.
How could I do this?
<script> function add() { var inpt = document.getElementById('input_template'); inpt.parentNode.appendChild(inpt.cloneNode(false)); } </script> <input type="button" onclick="add();">
set id=input_template to one of the predefined textboxes
最多设置5个标签!
set id=input_template to one of the predefined textboxes