HTML <textarea> ชื่อแอตทริบิวต์
ตัวอย่าง
พื้นที่ข้อความที่มีแอตทริบิวต์ชื่อ:
<form action="/action_page.php">
<textarea name="comment">Enter text here...</textarea>
<input type="submit">
</form>
ความหมายและการใช้งาน
แอตทริบิวต์name
ระบุชื่อสำหรับพื้นที่ข้อความ
คุณลักษณะname
นี้ใช้เพื่ออ้างอิงองค์ประกอบใน JavaScript หรือเพื่ออ้างอิงข้อมูลแบบฟอร์มหลังจากส่งแบบฟอร์ม
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<textarea name="text">
ค่าแอตทริบิวต์
Value | Description |
---|---|
text | Specifies the name of the text area |
❮ แท็ก HTML <textarea>