我有以下代码结构,如何单击编辑按钮以仅显示/隐藏该表的 3 个文件输入字段?
默认情况下,所有这些文件输入字段都是隐藏的。如果我按下第二个表内的编辑按钮,则只会显示第二个表内的 3 个输入。
<table>
<input type="file" name="product" class="editThis" />
<input type="file" name="color" class="editThis" />
<input type="file" name="price" class="editThis" />
<span class="editButton"></span>
</table>
<table>
<input type="file" name="product" class="editThis" />
<input type="file" name="color" class="editThis" />
<input type="file" name="price" class="editThis" />
<span class="editButton"></span>
</table>
<table>
<input type="file" name="product" class="editThis" />
<input type="file" name="color" class="editThis" />
<input type="file" name="price" class="editThis" />
<span class="editButton"></span>
</table>
我在网上找到的大多数示例都使用 getElementbyID,所以我有点卡住了。
谢谢,
拍