Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的表行克隆有问题。例如,一旦我编辑了克隆行的两个列,然后单击添加按钮,我得到克隆的行已经像以前一样编辑,而不是像其他示例中那样使用占位符“单击以编辑”
我的表中缺少什么函数来使行与我的占位符一起克隆而不被编辑?
如果您想克隆在文本框中输入的值相同的行,只需在单击事件中注释此行
//$clone.find(':text').val('');
因为它清除了所有文本框
jsfiddle