以下のコード構造があります。編集ボタンをクリックして、そのテーブルの 3 つのファイル入力フィールドのみを表示/非表示にするにはどうすればよいですか?
デフォルトでは、これらのファイル入力フィールドはすべて非表示になっています。2 番目のテーブル内で編集ボタンを押すと、2 番目のテーブル内の 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 を使用しているため、ちょっと行き詰まっています。
ありがとう、
パット