
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
HTML DOM Input Date step Property
The HTML DOM Input Date step property determines the legal day intervals to choose from when user opens the calendar. It sets or returns the input date step attribute value.
Syntax
Following is the syntax −
- Returning number value
inputDateObject.step
- Setting value attribute to a number value
inputDateObject.step = number
Example
Let us see an example of Input Date step property −
<!DOCTYPE html> <html> <head> <title>Input Date required</title> </head> <body> <form> <div> Odd Days Calendar: <input type="date" id="dateSelect" step="2"> </div> </form> <div id="divDisplay"></div> <script> var divDisplay = document.getElementById("divDisplay"); var inputDate = document.getElementById("dateSelect"); divDisplay.textContent = 'Current step: '+inputDate.step; </script> </body> </html>
Output
This will produce the following output. Here, step was set to 2 −
- Related Articles
- HTML DOM Input Month step Property
- HTML DOM Input Number step Property
- HTML DOM Input Range step property
- HTML DOM Input DatetimeLocal step Property
- HTML DOM Input Time step Property
- HTML DOM Input Week step Property
- HTML DOM Input Date autofocus Property
- HTML DOM Input Date disabled Property
- HTML DOM Input Date form Property
- HTML DOM Input Date name Property
- HTML DOM Input Date max Property
- HTML DOM Input Date min Property
- HTML DOM Input Date readOnly Property
- HTML DOM Input Date required Property
- HTML DOM Input Date type Property

Advertisements