我目前正在使用資產管理系統。該公司遍佈不同的地點。如何動態添加輸入字段到表單
如果這些項目未被使用,此係統可以返回資產項目以再次存儲。
我想要做的是返回物品有很多物品。所以,我必須輸入字段這樣的:
<td><input type="text" name="asset_id[]"/></td>
<td><input type="text" name="batch_code[]"/></td>
<td><input type="text" name="description[]"/></td>
<td><input type="text" name="status[]"/></td>
// current condition of the item
我不能再使用這些字段,並再次,我不知道有許多領域都需要對每個具體情況。
如果我可以給用戶添加輸入字段的選項,如果他/她需要,我該怎麼做。
我試着一次又一次地添加字段。最後我覺得這是不實際的。我也在谷歌搜索它。但找不到任何解決方案。 – Dula