JSFiddle - React, Tailwind, and code Playground

by mharen

HTML

<input type="date" id="d"/>

JavaScript

$(function(){
    
    $('input').on('change', function(e){ console.log(e.target.value); });   
    
});