Answers for "input type date on change"

0

input type date on change

var date_input = document.getElementById('date_input');
date_input.valueAsDate = new Date();

date_input.onchange = function(){
   console.log(this.value);
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="date" id='date_input'>
Posted by: Guest on March-04-2021

Code answers related to "input type date on change"

Browse Popular Code Answers by Language