Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how assign custom date to input type date in javascript


<input id="dob" type="date" value="<?php echo date("Y-m-d"); ?>">
document.getElementById("dob").value = "2021-02-09";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #assign #custom #date #input #type #date #javascript
ADD COMMENT
Topic
Name
9+4 =