如何更改多维数组的第一列当我克隆部分时,用尽可能少的代码,我知道我可以单独进入并找到每一个输入,但这似乎效率很低。举个例子,如果我有;
<div class="wrapper">
<input type="text" name="height[0][]" />
<input type="text" name="width[0][]" />
<input type="text" name="depth[0][]" />
<input type="text" name="weight[0][]" />
</div>
克隆和编辑后,克隆的输出应该如下所示;
<div class="wrapper">
<input type="text" name="height[1][]" />
<input type="text" name="width[1][]" />
<input type="text" name="depth[1][]" />
<input type="text" name="weight[1][]" />
</div>
谢谢
转载请注明出处:http://www.nali5.com/article/20230529/995165.html