我克隆了一个元素,但我不想清除它的所有输入值。如何?
要克隆的元素:
<div id = "clone">
<span >
<input type = "text" >
<input type = "text">
</span>
</div>
js:
new_ele = $('#clone').clone()
new_ele.find().val("") # not working
我克隆了一个元素,但我不想清除它的所有输入值。如何?
要克隆的元素:
<div id = "clone">
<span >
<input type = "text" >
<input type = "text">
</span>
</div>
js:
new_ele = $('#clone').clone()
new_ele.find().val("") # not working