js点击按钮后,增加文本框

静态html:

<div class="box">
<input type="text" name="" id=""><span class="dj" style="width:20px;height: 20px;background: orange;margin-right: 10px;">&nbsp;+ &nbsp;</span>
</div>

方法一:
<script type="text/javascript">
$('.dj').click(function () {
$('.box').append( " </br><input type='text' name='' id=''> " );
});
</script>


posted @ 2018-02-06 18:46  我非日葵却也向阳  阅读(4133)  评论(0编辑  收藏  举报