Easy Tutorial
❮ Prop Style Counterreset Dom Obj Param ❯

Input Search value Attribute

Input Search Object

Example

Modify the value of the search field:


Definition and Usage

The value attribute is used to set or return the value of the search field's value attribute.

The value attribute describes the value entered by the user, the default value, or the value input by the script.


Browser Support

All major browsers support the value attribute.


Syntax

Return the value attribute:

Set the value attribute:

Attribute Values

Value Description
text Describes the initialization (default) value of the search field.

Technical Details

| Return Value: | String, representing the value of the search field | | --- | --- |


More Examples

Example

Get the value of the search field:


Related Pages

HTML Reference: HTML <input> value Attribute


❮ Prop Style Counterreset Dom Obj Param ❯