JSFiddle - React, Tailwind, and code Playground

by Manjula Dhamodharan

HTML

<input type="date" id="Id1" />
<input type="submit" onclick="validate();"/>

JavaScript

function validate(){
    var fd = document.getElementById("Id1").value;  
         alert(fd); 
   }