我有以下动态添加的文本框列表
<tr class="dimensionStone">
<td><input type="text" name="todayDimensionStones[].stoneNo" id="stoneNo" value=0 onclick="keyPressListener1(this.id)" onfocus="keyPressListener1(this.id)" Class="controlStock"/></td>
<td><input type="text" name="todayDimensionStones[].length" id="length" value=0 onchange="findDimension(this.id)" onclick="keyPressListener(this.id)" onfocus="keyPressListener(this.id)" Class="controlStock"/></td>
<td><input type="text" name="todayDimensionStones[].breadth" id="breadth" value=0 onchange="findDimension(this.id)" onclick="keyPressListener(this.id)" onfocus="keyPressListener(this.id)" Class="controlStock"/></td>
<td><input type="text" name="todayDimensionStones[].height" id="height" value=0 onchange="findDimension(this.id)" onclick="keyPressListener(this.id)" onfocus="keyPressListener(this.id)" Class="controlStock"/></td>
<td><input type="text" name="todayDimensionStones[].dimension" id="dimension" value=0 onchange="findDimension(this.id)" onclick="keyDownDisableListener(this.id)" Class="controlStock"/></td>
<td><input type="text" name="todayDimensionStones[].isIssued" id="isIssued" value="No" onfocus="keyDownDisableListener(this.id)" Class="controlStock"/></td>
<td><input type="text" name="todayDimensionStones[].status" id="status" onfocus="keyDownDisableListener(this.id)" Class="controlStock"/></td>
<td><a href="#" class="removeDimensionStone"><img src="images/1minus.png" width="20" height="20" title="Remove Dimension Stone"/></a></td>
</tr>
我一直在使用以下 jquery 将前 5 个元素的值设置为零,最后一个元素设置为无值
$(rowElement).find("input").val(0);
$(rowElement).find(":text:last").val('');
但是我找不到 jquery 来重置最后一个元素的前一个元素的值。我搜索了更多。请帮帮我