0
0

【HTML】複数のフォームコントロールに一括でdisabledを設定する方法

Posted at

fieldset要素を使用して以下のように使用することでfieldset要素の子孫要素のフォームコントロールにまとめてdisabledを設定できます。

<fieldset disabled>
	<div>
	  <input type="email" name="name" />
	</div>

	<div>
	  <input type="password" name="password" />
	</div>
</fieldset>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0