日期:2014-05-16  浏览次数:20400 次

这个该怎么取值呢?我的js水平太菜!!请大神指点一二。。
本帖最后由 Gemerl 于 2013-08-15 22:49:46 编辑
这个该怎么取值呢?我的js水平太菜!!请大神指点一二。。

效果图:


jsp源码:

<div id="tabb">
<fieldset>
<legend>摆货详情</legend>
<div style="width:100%; font-family:'宋体';font-size:12px;">
  物料总数量:
  <input type="text" name="TextField_1" value="19" id="TextField_1" style="display:none"/>
  <input type="text" name="receiptQuan" value="<s:property value="#session.materiel.inventory"/>" id="receiptQuan" style="border-bottom:0" readonly="true" class="input1"/>
  物料名称:
  <input type="text" name="TextField_2" value="<s:property value="#session.materiel.matname"/>" id="TextField_2" style="border-bottom:0" readonly="true" class="input1"/>
  <input type="text" name="TextField_3" value="5" id="TextField_3" style="display:none"/>
  物料编号:
  <input type="text" name="TextField_2" value="<s:property value="#session.materiel.id"/>" id="TextField_2" style="border-bottom:0" readonly="true" class="input1"/>
    
  </div>
<form name="form2">
<ul>
<s:if test="#session.depotareas == null">
<s:fielderror key="depotGetError"/>
</s:if>
                 //循环仓位可以
  <s:iterator value="#session.storageList" var="storage">
   <li style=" height: 100px; width:150px; float:left; border: 1px solid yellow; text-align: center">
   //此处是可以入库的仓位
   <s:if test="#storage.stoarea<400">
                                //输入数量的地方
   <input type="text" class="input2" style=" margin-left: -40px">
                               //记住仓位编号的地方隐藏域
   <input id="storagesId" value="<s:property value="#storage.id"/>" style=" height:0px" type="hidden">
   <img src="images/nos/103.gif" style=" margin: 0px auto;" align="top"><tr/>