日期:2014-05-16 浏览次数:20375 次
//html 代码
<td colspan="7">
<input type="text" name="delStorageInventoryIn[0].upc" class="text" maxlength="20" />
</td>
<td colspan="7">
<input type="text" name="delStorageInventoryIn[0].sn"class="text" maxlength="20" />
</td>
//下面是js
$().ready(function() {
var parameterIndex = 1;
// 增加可选项
$addOption.live("click", function() {
var $this = $(this);
[@compress single_line = true]
var trHtml =
'<tr class="optionTr">
<td>
<\/td>
<td>
<input type="text" name="delStorageInventoryIn['+parameterIndex+'].upc" class="text upc" />
<\/td>
<td>
<input type="text" name="delStorageInventoryIn['+parameterIndex+'].memberSn" class="text memberSn" "/>
<\/td>
<\/tr>';
[/@compress]
$attributeTable.append(trHtml);
parameterIndex ++;
});