HTML <textarea> d irname Attribute
ตัวอย่าง
แบบฟอร์ม HTML ที่จะส่งทิศทางข้อความของฟิลด์:
<form action="/action_page.php">
Text:
<textarea name="explanation" dirname="explanation.dir"></textarea>
<input type="submit" value="Submit">
</form>
ความหมายและการใช้งาน
แอตทริบิวต์dirname
ช่วยให้ส่งทิศทางข้อความของพื้นที่ข้อความ
ค่าdirname
ของแอตทริบิวต์จะเป็นชื่อของพื้นที่ข้อความเสมอ ตามด้วย ".dir"
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่
Attribute | |||||
---|---|---|---|---|---|
dirname | Yes | 79.0 | No | Yes | Yes |
ไวยากรณ์
<textarea name="myname" dirname="myname.dir"></textarea>
ค่าแอตทริบิวต์
Value | Description |
---|---|
name.dir | Specifies that the text direction of the textarea will be submitted. |
❮ แท็ก HTML <input>