Answers for "input date javascript"

1

set date input html using js

document.getElementById("datePicker").valueAsDate = new Date()
Posted by: Guest on March-27-2021
0

html date input

<label for="start">Start date:</label>

<input type="date" id="start" name="trip-start"
       value="2018-07-22"
       min="2018-01-01" max="2018-12-31">
Posted by: Guest on May-08-2021

Browse Popular Code Answers by Language