How to create HTML DOM Input type date ‘min’ and ‘max’ restriction ? - Example-1 Type Your Code <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Date restriction in HTML DOM input type date</title> </head> <body> <p>Example of restricting date using 'Min' amd 'Max' attributes</p> <label for="date">Select Date : </label><input type="date" id="date" value="2019-08-21" min="2019-08-21" max="2019-08-28" /> </body> </html> Result
0 comments: