A lightweight, powerful javascript datetime picker
95
Build a date preset selector that allows users to quickly set dates on a date picker through button clicks.
Create a web page with a date input field and four preset buttons. When a user clicks a preset button, the date picker should be programmatically updated to the corresponding date:
The date picker should:
@generates
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Date Preset Selector</title>
</head>
<body>
<input type="text" id="datepicker" placeholder="Select a date">
<div>
<button id="preset-today">Today</button>
<button id="preset-tomorrow">Tomorrow</button>
<button id="preset-week">One Week</button>
<button id="preset-month">One Month</button>
</div>
<script src="./index.js"></script>
</body>
</html>Provides datetime picker functionality with programmatic date setting capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-flatpickrevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10