HTML <textarea> form Atribut
Příklad
Textová oblast umístěná mimo formulář (ale stále součástí formuláře):
<form action="/action_page.php" id="usrform">
Name: <input type="text" name="usrname">
<input type="submit">
</form>
<textarea name="comment" form="usrform">Enter text here...</textarea>
Definice a použití
Atribut form
určuje formu, do které textová oblast patří.
Hodnota tohoto atributu se musí rovnat id
atributu
<form>
prvku ve stejném dokumentu.
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
form | Yes | 11.0 | Yes | Yes | Yes |
Syntax
<textarea form="form_id">
Hodnoty atributů
Value | Description |
---|---|
form_id | Specifies the form element the <textarea> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document. |
❮ HTML tag <textarea>