Front End Technology Articles - Page 557 of 860

HTML DOM Input DatetimeLocal stepDown( ) Method

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

86 Views

The HTML DOM Input DatetimeLocal stepdown() method defines the number of minutes the datetimeLocal field should decrease.SyntaxFollowing is the syntax −Calling stepDown method with a number, which by default is equal to 1inputDatetimeLocalObject.stepDown(number)ExampleLet us see an example of Input DatetimeLocal stepDown method − Live Demo Input DatetimeLocal stepDown()    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Datetime-Local-stepDown( ... Read More

HTML DOM Input DatetimeLocal step Property

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

355 Views

The HTML DOM Input DatetimeLocal step property determines the legal intervals for seconds or milliseconds.SyntaxFollowing is the syntax −Returning number valueinputDatetimeLocalObject.stepSetting step attribute to a number valueinputDatetimeLocalObject.step = numberParametersParameter number values −ValueDescriptionsecondsvalid values constitute of those numbers that divide 60 perfectly (eg: 10, 15, 20)millisecondsvalid values start with “.” and divide 1000 perfectly (eg: .10, .20, .01)ExampleLet us see an example of Input DatetimeLocal step property − Live Demo Input DatetimeLocal step    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       ... Read More

HTML DOM Input DatetimeLocal required Property

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

116 Views

The HTML DOM Input DatetimeLocal required property determines whether Input DatetimeLocal is compulsory to set or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDatetimeLocalObject.requiredSetting required to booleanValueinputDatetimeLocalObject.required = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt is compulsory to set the datetimeLocal field to submit form.falseIt is the default value and to set datetimeLocal field is not compulsory.ExampleLet us see an example of Input DatetimeLocal required property − Input DatetimeLocal required    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {     ... Read More

HTML DOM Input DatetimeLocal readOnly Property

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

188 Views

The HTML DOM Input DatetimeLocal readOnly property sets/returns whether Input DatetimeLocal can be modified or not.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDatetimeLocalObject.readOnlySetting readOnly to booleanValueinputDatetimeLocalObject.readOnly = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input datetimeLocal field is readOnly.falseIt defines that the input datetimeLocal field is not readOnly and can be modified.ExampleLet us see an example of Input DatetimeLocal readOnly property − Live Demo Input DatetimeLocal readOnly    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       ... Read More

HTML DOM Input DatetimeLocal Object

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

113 Views

The HTML DOM Input DatetimeLocal Object represents an input HTML element with type datetimeLocal.SyntaxFollowing is the syntax −Creating an with type datetimeLocalvar datetimeLocalObject = document.createElement(“input”); datetimeLocalObject.type = “datetime-local”;AttributesHere, “datetimeLocalObject” can have the following attributes −AttributesDescriptionautocompleteIt defines the value of autocomplete attribute of a datetimeLocal fieldautofocusIt defines if the datetimeLocal field should be focused on initial page load.defaultValueIt sets/returns the default value of datetimeLocal fielddisabledIt defines if datetimeLocal field is disabled/enabledformIt returns a reference of enclosing form that contains the datetimeLocal fieldmaxIt returns/sets the value of max attribute of datetimeLocal fieldminIt returns/sets the value of min attribute of datetimeLocal fieldnameIt ... Read More

HTML DOM Input DatetimeLocal name Property

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

97 Views

The HTML DOM Input DatetimeLocal name property returns a string, which is the value of the name attribute of input datetimeLocal. User can also set it to a new string.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.nameSetting name attribute to a string valueinputDatetimeLocalObject.name = ‘String’ExampleLet us see an example of Input DatetimeLocal name property − Live Demo Input DatetimeLocal name    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {     ... Read More

HTML DOM Input DatetimeLocal min Property

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

176 Views

The HTML DOM Input DatetimeLocal min property returns/sets min attribute of Input DatetimeLocal.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.minSetting min to string valueinputDatetimeLocalObject.min = YYYY-MM-DDThh:mm:ssString ValuesHere, “YYYY-MM-DDThh:mm:ss” can be the following −stringValueDetailsYYYYIt defines year (eg:199)MMIt defines month (eg: 07 for July)DDIt defines Day (eg: 11)TIt is a separator for date and timehhIt defines hour (eg:08)mmIt defines minutes (eg:18)ssIt defines seconds (eg:23)ExampleLet us see an example of Input DatetimeLocal min property − Live Demo Input DatetimeLocal min    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * ... Read More

HTML DOM Input DatetimeLocal max Property

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

149 Views

The HTML DOM Input DatetimeLocal max property returns/sets max attribute of Input DatetimeLocal.SyntaxFollowing is the syntax −Returning string valueinputDatetimeLocalObject.maxSetting max to string valueinputDatetimeLocalObject.max = YYYY-MM-DDThh:mm:ssString ValuesHere, “YYYY-MM-DDThh:mm:ss” can be the following −stringValueDetailsYYYYIt defines year (eg:2006)MMIt defines month (eg: 06 for June).DDIt defines Day (eg: 17)TIt is a separator for date and timehhIt defines hour (eg:02)mmIt defines minutes (eg:21)ssIt defines seconds (eg:40)ExampleLet us see an example of Input DatetimeLocal max property − Live Demo Input DatetimeLocal max    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * ... Read More

HTML DOM Input DatetimeLocal form Property

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

140 Views

The HTML DOM Input DatetimeLocal form property returns the reference of enclosing form for input DatetimeLocal.SyntaxFollowing is the syntax −Returning reference to the form objectinputDatetimeLocalObject.formExampleLet us see an example of Input DatetimeLocal form property − Live Demo Input DatetimeLocal form    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       padding: 2px;       margin:5px;    }    input[type="button"] {       border-radius: 10px;    } Datetime-Local-form Examination Time: ... Read More

HTML DOM Input DatetimeLocal disabled Property

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

119 Views

The HTML DOM Input DatetimeLocal disabled property sets/returns whether Input DatetimeLocal is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falseinputDatetimeLocalObject.disabledSetting disabled to booleanValueinputDatetimeLocalObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the input datetimeLocal is disabled.falseIt defines that the input datetimeLocal is not disabled and it is also the default value.ExampleLet us see an example of Input DatetimeLocal disabled property − Live Demo Input DatetimeLocal Disabled    form {       width:70%;       margin: 0 auto;       text-align: center;    }    * {       ... Read More

Advertisements