Input Search placeholder Attribute

Definition and Usage

placeholder Set or return the value of the placeholder attribute of the search field.

The HTML placeholder attribute specifies a brief hint describing the expected value of the search field (for example, a sample value or a brief description of the expected format).

A short hint is displayed in the text field before the user enters a value.

See also:

HTML Reference Manual:HTML <input> placeholder প্রতিযোগিতা

Example

Example 1

Change the placeholder text of the search field:

document.getElementById("mySearch").placeholder = "Search image";

Try it yourself

Example 2

Get the placeholder text of the search field:

var x = document.getElementById("mySearch").placeholder;

Try it yourself

Syntax

Return placeholder attribute:

searchObject.placeholder

set placeholder attribute:

searchObject.placeholder = text

প্রতিযোগিতা মান

মান বর্ণনা
text প্রতিযোগিতা বর্ণনা প্রত্যাশিত মান শব্দ বা পংক্তি

প্রযুক্তিগত বিবরণ

ফলাফল: শব্দমালা মান, যা সাধারণত অনুসন্ধান ক্ষেত্রের প্রত্যাশিত মান বর্ণনা করে

ব্রাউজার সমর্থন

সারণীতে নম্বরগুলি প্রথম এই অপারেটরের সংস্করণটি যা এই অপারেটরটির সম্পূর্ণভাবে সমর্থন করে বলা হয়

চ্রোম এজ ফায়ারফক্স স্যাফারি ওপেরা
চ্রোম এজ ফায়ারফক্স স্যাফারি ওপেরা
সমর্থন 10.0 সমর্থন সমর্থন সমর্থন