js获取td下循环的input值
var value = document.getElementsByName("newQtyAdditinal");
for(var i =0;i<value.length;i++){
alert(value[i].value);
}
<tr class="tr_toggle" style="background: #FFFF99">
<td style="background: #FFFF99">Additinal New Qty (K pcs)<br>额外新瓶数量
</td>
<c:forEach items="${dto.newQtyAdditinal}" var="info"
varStatus="s">
<td style="text-align: right; background: #FFFF99" class="test_3"><c:set
var="m" value="${s.index}" /> <c:choose>
<c:when test="${s.index !=12 }">
<input type="text" name="newQtyAdditinal" id="newQtyAdditinal2"
<c:if test="${status==‘Completed‘ || dto.type[m]==‘AC‘ }">readonly="readonly"</c:if>
value="<fmt:formatNumber value="${info}" type="currency" pattern="####.########"/>"
onblur="getnewQtyAdditinal(value,${s.index})"
style="width: 60px; height: 20px; padding: 0; margin: 0; text-align: right" />
</c:when>
<c:otherwise>
<fmt:formatNumber value="${info}" type="currency"
pattern="####.########" />
<input type="hidden" name="newQtyAdditinal" id="newQtyAdditinal3"
<c:if test="${status==‘Completed‘ }">readonly="readonly"</c:if>
value="<fmt:formatNumber value="${info}" type="currency" pattern="####.########"/>"
style="width: 60px; height: 20px; padding: 0; margin: 0; text-align: right" />
</c:otherwise>
</c:choose></td>
</c:forEach>
</tr>
本文出自 “8812323” 博客,请务必保留此出处http://8822323.blog.51cto.com/8812323/1630298
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。