AmitDiwan

AmitDiwan

8,392 Articles Published

Articles by AmitDiwan

Page 278 of 840

HTML DOM Input Datetime required Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 176 Views

The HTML DOM Input Datetime required property determines whether a datetime input field must be filled before form submission. When set to true, the browser prevents form submission if the datetime field is empty and displays a validation message. Syntax Following is the syntax for getting the required property − inputDatetimeObject.required Following is the syntax for setting the required property − inputDatetimeObject.required = booleanValue Parameters The required property accepts a boolean value − Value Description true Makes the datetime field mandatory ...

Read More

HTML DOM Input Datetime type Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 496 Views

The HTML DOM Input Datetime type property allows you to get or set the type attribute of an input element that was initially created as a datetime input. This property is useful for dynamically changing input types or checking the current type of an input element. Note: The datetime input type has been deprecated in HTML5. Most modern browsers treat it as a text input. For date and time inputs, use datetime-local, date, or time instead. Syntax Following is the syntax for returning the type value − inputDatetimeObject.type Following is the syntax for ...

Read More

HTML DOM Input Datetime value Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 216 Views

The HTML DOM Input Datetime value property allows you to get or set the value of a datetime input field. This property returns the current value as a string in ISO 8601 format or sets a new datetime value programmatically. Syntax Following is the syntax for getting the datetime value − inputDatetimeObject.value Following is the syntax for setting the datetime value − inputDatetimeObject.value = "YYYY-MM-DDTHH:MM:SSZ" The datetime value must be in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ where T separates date and time, and Z indicates UTC timezone. Return Value ...

Read More

HTML DOM Input DatetimeLocal disabled Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 154 Views

The HTML DOM Input DatetimeLocal disabled property sets or returns whether an Input DatetimeLocal field is enabled or disabled. When set to true, the field becomes uneditable and grayed out, preventing user interaction. When set to false, the field becomes interactive and allows users to select date and time values. Syntax Following is the syntax for returning the disabled property − inputDatetimeLocalObject.disabled Following is the syntax for setting the disabled property − inputDatetimeLocalObject.disabled = booleanValue Parameters The disabled property accepts the following boolean values − ...

Read More

HTML DOM Input DatetimeLocal form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 180 Views

The HTML DOM Input DatetimeLocal form property returns a reference to the element that contains the input DatetimeLocal element. This property is read-only and provides access to the parent form object for further manipulation or validation. Syntax Following is the syntax to access the form property − inputDatetimeLocalObject.form Return Value The property returns a reference to the HTMLFormElement object that contains the datetime-local input. If the input is not within a form element, it returns null. Example Let us see an example of Input DatetimeLocal form property − ...

Read More

HTML DOM Input DatetimeLocal max Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 205 Views

The HTML DOM Input DatetimeLocal max property returns or sets the maximum allowed date and time value for a datetime-local input field. This property corresponds to the max attribute in HTML and helps restrict user input to a specific upper limit. Syntax Following is the syntax for returning the max value − inputDatetimeLocalObject.max Following is the syntax for setting the max value − inputDatetimeLocalObject.max = "YYYY-MM-DDThh:mm:ss" Return Value The max property returns a string representing the maximum date and time value in the format YYYY-MM-DDThh:mm:ss. If no max attribute ...

Read More

HTML DOM Input DatetimeLocal min Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 223 Views

The HTML DOM Input DatetimeLocal min property sets or returns the minimum value for a datetime-local input field. This property corresponds to the HTML min attribute and restricts users from selecting dates and times earlier than the specified minimum value. Syntax Following is the syntax for returning the min property − inputDatetimeLocalObject.min Following is the syntax for setting the min property − inputDatetimeLocalObject.min = "YYYY-MM-DDThh:mm:ss" Parameters The min property accepts a string value in the format YYYY-MM-DDThh:mm:ss representing the minimum allowable datetime − Component Description ...

Read More

JavaScript Program to Find array sum using Bitwise OR after splitting given array in two halves after K circular shifts

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 272 Views

We will write a JavaScript program to find the sum of an array by using bitwise OR after splitting the given array into two halves after K circular shifts. Our program will perform the task by taking an array and an integer K as inputs. First, we will split the array into two halves after performing K circular shifts. Then, we will perform bitwise OR on both the halves to get a new array. Finally, we will find the sum of the new array obtained from the bitwise OR operation. Approach First, perform K ...

Read More

JavaScript Program to Find Closest Number in Array

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 3K+ Views

To find closest number in array using JavaScript, we will be understanding and discussing three different approaches. We will also compare time and space complexities of all the approaches used. In this article we are having an array and a target value, our task is to find closest number to target value in array using JavaScript. User must know about JavaScript arrays, searching algorithms such as linear and binary search, sorting, loops, and conditional statements. Approaches to Find Closest Number in Array Here is a list of approaches to find closest number in array in JavaScript which ...

Read More

JavaScript Program to Find Difference Between Sums of Two Diagonals

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 602 Views

To find difference between sums of two diagonals, we will be discussing two different approaches. We will calculate the sum of the elements present in the left and right diagonal, then we will subtract both sum values to get the difference. In this article we are having a square matrix, our task is to write a JavaScript program to find difference between sums of two diagonals. ...

Read More
Showing 2771–2780 of 8,392 articles
« Prev 1 276 277 278 279 280 840 Next »
Advertisements