HTML <textareosystem d irname Attribute
Thí dụ
Một biểu mẫu HTML trong đó hướng văn bản của trường sẽ được gửi:
<form action="/action_page.php">
Text:
<textarea name="explanation" dirname="explanation.dir"></textarea>
<input type="submit" value="Submit">
</form>
Định nghĩa và Cách sử dụng
Thuộc dirname
tính cho phép gửi hướng văn bản của vùng văn bản.
Giá dirname
trị của thuộc tính luôn là tên của vùng văn bản, theo sau là ".dir".
Hỗ trợ trình duyệt
Các số trong bảng chỉ định phiên bản trình duyệt đầu tiên hỗ trợ đầy đủ thuộc tính.
Attribute | |||||
---|---|---|---|---|---|
dirname | Yes | 79.0 | No | Yes | Yes |
Cú pháp
<textarea name="myname" dirname="myname.dir"></textarea>
Giá trị thuộc tính
Value | Description |
---|---|
name.dir | Specifies that the text direction of the textarea will be submitted. |
❮ Thẻ HTML <input>