Textarea ห่อทรัพย์สิน
ตัวอย่าง
ดูวิธีการห่อข้อความในพื้นที่ข้อความเมื่อส่งแบบฟอร์ม:
var x = document.getElementById("myTextarea").wrap;
ความหมายและการใช้งาน
ห่อคุณสมบัติชุดหรือส่งกลับค่าของแอตทริบิวต์ตัดของพื้นที่ข้อความ
แอตทริบิวต์ wrap ระบุวิธีการห่อข้อความในพื้นที่ข้อความเมื่อส่งในแบบฟอร์ม
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
wrap | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
ส่งคืนคุณสมบัติห่อ:
textareaObject.wrap
ตั้งค่าคุณสมบัติห่อ:
textareaObject.wrap = soft|hard
มูลค่าทรัพย์สิน
Value | Description |
---|---|
soft | The text in the text area is not wrapped when submitted in a form. This is default |
hard | The text in the text area is wrapped (contains newlines) when submitted in a form. When "hard" is used, the cols attribute must be specified |
รายละเอียดทางเทคนิค
คืนมูลค่า: | สตริงที่แสดงว่าพื้นที่ข้อความตัดข้อความเมื่อส่งในรูปแบบ |
---|
หน้าที่เกี่ยวข้อง
การอ้างอิง HTML: HTML <textarea> แอตทริบิวต์การตัดข้อความ
❮ วัตถุ Textarea