mirror of
https://github.com/atapas/html-tips-tricks.git
synced 2024-11-16 00:38:26 +01:00
Add time and date select to inputs
This commit is contained in:
parent
5dc82b852f
commit
ad6559209c
1 changed files with 24 additions and 1 deletions
|
@ -76,6 +76,29 @@
|
|||
<button type="submit"> Test </button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<h2>Date picker</h2>
|
||||
<form>
|
||||
<label for="date-picker">Select a date</label>
|
||||
<input type="date"
|
||||
name="date"
|
||||
id="date-picker"
|
||||
min="1999-05-20"
|
||||
max="2025-10-05"
|
||||
value="2022-10-10">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<h2>Time select</h2>
|
||||
<form>
|
||||
<label for="time-select">Select time</label>
|
||||
<input type="time"
|
||||
name="time"
|
||||
id="time-select">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Reference in a new issue