jquery 克隆input

来源:互联网 发布:优酷视频for mac 编辑:程序博客网 时间:2024/06/05 20:44
<input type="file" name="file" id="file">jQuery:$("#asd").append($('#file').clone(true).attr('id', "nodeinput"+childrenlength));$("#nodeinput"+childrenlength).attr('name','hiddeninput');$("#nodeinput"+childrenlength).attr('value',fileType_);