我想我的重命名後的文本框..重命名文本框刪除某些行後刪除行
TextBoxA1 TextBoxB1
TextBoxA2 TextBoxB2
TextBoxA3 TextBoxB3
然後我刪除TextBox2中。然後,我添加一行,我得到這個
TextBox1 TextBoxB1
TextBox3 TextBoxB3
TextBox3 TextBoxB3
我想將其重命名或因爲即時通訊使用的每個ID的PHP和一個window.opener重新命名其ID
輸出應該是這樣的
TextBoxA1 <before the name is TextBoxA1> TextBoxB1 <before the name is TextBoxB1>
TextBoxA2 <before the name is TextBoxA3> TextBoxB2 <before the name is TextBoxB3>
TextBoxA3 <newly added row> TextBoxB3 <newly added row>
這裏的的jsfiddle:http://jsfiddle.net/k3vin023/MvQ4h/5/
哦,非常感謝你!它的工作現在。 :) – k3vin023
如果我有2個文本框在相同的TD呢? – k3vin023
它應該重新索引刪除後留下的內容。試試看看會發生什麼。 – Omnilord