我不知道为什么克隆元素的id不会改变.这是我正在研究的代码.
c.children('#response1').attr('id','response'+ (++inputs) );
JSFidde
html jquery
html ×1
jquery ×1