js点击按钮后,增加文本框
静态html:
<div class="box">
<input type="text" name="" id=""><span class="dj" style="width:20px;height: 20px;background: orange;margin-right: 10px;"> + </span>
</div>
方法一:
<script type="text/javascript">
$('.dj').click(function () {
$('.box').append( " </br><input type='text' name='' id=''> " );
});
</script>