WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input Search Object


Input Search Object

The Information Search Object is new in HTML5.

The Input Search object speaks to a HTML <input> component with type="search".

Access an Input Search Object

You can get to a <input> component with type="search" by utilizing getElementById():

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

Tip: You can likewise get to <input type="search"> via seeking through the elements accumulation of a form.

Create an Input Search Object

You can make a <input> component with type="search" by utilizing the document.createElement() method:

var x = document.createElement("INPUT");
x.setAttribute("type", "search");

Input Search Object Properties

Property Description
autocomplete Sets or returns the estimation of the autocomplete quality of a pursuit field
autofocus Sets or returns whether a hunt field ought to naturally get center at the point when the page loads
defaultValue Sets or returns the default estimation of a pursuit field
disabled Sets or returns whether an inquiry field is impaired, or not
form Returns a reference to the structure that contains the hunt field
list Returns a reference to the datalist that contains the hunt field
maxLength Sets or returns the estimation of the maxlength characteristic of a hunt field
name Sets or returns the estimation of the name property of an inquiry field
pattern Sets or returns the estimation of the example trait of an inquiry field
placeholder Sets or returns the estimation of the placeholder property of a hunt field
readOnly Sets or returns whether the inquiry field is perused just, or not
required Sets or returns whether the inquiry field must be rounded out before presenting a form
>size Sets or returns the estimation of the size quality of the pursuit field
type Returns which kind of structure component the hunt field is
value Sets or returns the estimation of the esteem trait of a hunt field