qq_35649402
你们让我起个名啊
2017-10-26 05:48

json 文本框如何联动填写信息?

5
  • json
  • jquery
  • 前端学习

后台已经封装好了json数据,请问如何做到用户填写deviceid后,自动填写与deviceid关联的deviceid_name 和brand?

 <tr id="tOutWarehouseSlaveList{{idx}}">

                            <td>
                                <input path ="tInventoryTable"  id="tOutWarehouseSlaveList{{idx}}_deviceid" name="tOutWarehouseSlaveList[{{idx}}].deviceid" type="text" value="{{row.deviceid}}" maxlength="255" class="input-small " onblur = "tInventoryTableInfo()"/>
                            </td>
                            <td>
                                <input id="tOutWarehouseSlaveList{{idx}}_devicename" name="tOutWarehouseSlaveList[{{idx}}].devicename" type="text" value="{{row.devicename}}" maxlength="255" class="input-small "/>
                            </td>
                            <td>
                                <input id="tOutWarehouseSlaveList{{idx}}_brand" name="tOutWarehouseSlaveList[{{idx}}].brand" type="text" value="{{row.brand}}" maxlength="255" class="input-small "/>
                            </td>
                            </tr>
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换