AmitDiwan has Published 11367 Articles

HTML DOM Input Date readOnly Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

127 Views

The HTML DOM Input Date readOnly property sets/returns whether Input Date can be modified or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDateObject.readOnlySetting readOnly to booleanValueinputDateObject.readOnly = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input date is readOnly.falseIt defines that the input date is not readOnly ... Read More

HTML DOM Input Date required Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

106 Views

The HTML DOM Input Date required property determines whether Input date is compulsory to set or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDateObject.requiredSetting required to booleanValueinputDateObject.required = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that it is compulsory to set the date field to submit form.falseIt ... Read More

HTML DOM Select add() Method

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

102 Views

The HTML DOM select add() method adds a new option to a drop-down list in an HTML document.SyntaxFollowing is the syntax −object.add(option, index)ExampleLet us see an example of HTML DOM select add() method − Live Demo    html{       height:100%;    }    body{     ... Read More

HTML DOM Select remove() Method

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

70 Views

The HTML DOM select remove() method removes a new option from a drop-down list in an HTML document.SyntaxFollowing is the syntax −object.remove(index)Here, index represents the index of the option which is to be removed from the drop-down list.ExampleLet us see an example of HTML DOM select remove() method − Live Demo ... Read More

HTML DOM Option Object

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

145 Views

The HTML DOM option Object represent the element of an HTML document.Let us now see how to create option object −SyntaxFollowing is the syntax −document.createElement(“OPTION”);PropertiesFollowing are the properties of option Object −PropertyExplanationdisabledIt returns and modify whether the option element is disabled or not.defaultSelectedIt returns the default value of option ... Read More

HTML DOM Samp Object

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

91 Views

The HTML DOM Samp Object represent the element of an HTML document.Let us create a samp object −SyntaxFollowing is the syntax −document.createElement(“SAMP”);ExampleLet us see an example of samp object − Live Demo    body{       text-align:center;       background-color:#fff;       color:#0197F6;   ... Read More

HTML DOM Section Object

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

147 Views

The HTML DOM Section Object represent the element of an HTML document.Let us create section objectSyntaxFollowing is the syntax −document.createElement(“SECTION”);ExampleLet us see an example of HTML DOM section object − Live Demo    body{       text-align:center;       background-color:#fff;       color:#0197F6;   ... Read More

HTML DOM Option defaultSelected Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

62 Views

The HTML DOM option defaultSelected property returns the default value of option element in an HTML document.SyntaxFollowing is the syntax −object.defualtSelectedExampleLet us see an example of defaultSelected property − Live Demo    html{       height:100%;    }    body{       text-align:center;       ... Read More

HTML DOM querySelector() Method

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

237 Views

The HTML DOM querySelector() method returns the first element that matches a specific CSS selector specified in its parameter in an HTML document.SyntaxFollowing is the syntax −document.querySelector(“CSS Selector”);ExampleLet us see an example of querySelector() method − Live Demo    html{       height:100%;    }    body{ ... Read More

HTML DOM querySelectorAll() Method

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

158 Views

The HTML DOM querySelectorAll() method returns all elements that matches a specific CSS selector specified in its parameter in an HTML document.SyntaxFollowing is the syntax −document.querySelectorAll(“CSS Selector”);ExampleLet us see an example of querySelectorAll() method − Live Demo    html{       height:100%;    }    body{   ... Read More

Advertisements