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>



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM