Textarea placeholder attribute
Definition and Usage
placeholder
Set or return the placeholder attribute value of the text area.
The HTML placeholder attribute specifies a short hint that describes the expected value of the text area (for example, a sample value or a brief description of the expected format).
The hint will be displayed in an empty text area and disappear when the field gets focus.
See also:
HTML Reference Manual:HTML <textarea> placeholder প্রতিভাতি
Example
Example 1
Change the placeholder text of the text area:
document.getElementById("myTextarea").placeholder = "Where do you live?";
Example 2
Get the placeholder text of the text area:
var x = document.getElementById("myTextarea").placeholder;
Syntax
Return placeholder attribute:
textareaObject.placeholder
set placeholder attribute:
textareaObject.placeholder = text
প্রতিভাতি
মান | উল্লেখনীয় |
---|---|
text | উল্লেখনীয় টেক্সট এলাকার প্রত্যাশিত মানকের সংক্ষিপ্ত টুইটার (শব্দ বা ফালা) |
প্রযুক্তিগত বিস্তার
ফলাফল: | শব্দমালা মান, টেক্সট এলাকার প্রত্যাশিত মানকের সংক্ষিপ্ত টুইটার |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
সমর্থন | 10.0 | সমর্থন | সমর্থন | সমর্থন |