Textarea maxLength attribute
Definition and Usage
maxLength
Set or return the value of the text area's maxlength property.
The HTML maxLength attribute specifies the maximum number of characters allowed in the text area.
See also:
HTML Reference Manual:HTML <textarea> maxlength অ্যাট্রিবিউট
Example
Example 1
Get the maximum number of characters allowed in the specific text area:
var x = document.getElementById("myTextarea").maxLength;
Example 2
Change the maximum number of characters allowed in the text area:
document.getElementById("myTextarea").maxLength = "4";
Syntax
return maxLength property:
textareaObject.maxLength
maxLength অ্যাট্রিবিউট সেট করুন:
textareaObject.maxLength = number
প্রতিভূত মান
মান | বর্ণনা |
---|---|
number | বিবরণ প্রদান করুন: টেক্সট এলাকায় অনুমতি প্রাপ্ত মাক্সিমামাম অক্ষর সংখ্যা। |
তকনীকী বিবরণ
ফলাফল: | সংখ্যা, যা টেক্সট এলাকায় অনুমতি প্রাপ্ত মাক্সিমামাম অক্ষর সংখ্যা। |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
সমর্থন | 10.0 | সমর্থন | সমর্থন | সমর্থন |