JSFiddle - React, Tailwind, and code Playground

by akmiecik

HTML

<div type="text" id="datepicker"/>

CSS

input#datepicker {
    position: relative;
    right: 4vw;
    width: 4vw;
    height: 50px;
    background: transparent;
    border: unset;
    font-size: 0px;
}
input:focus {
  border: unset;
}
div#content {
    height: 90vh;
    overflow-y: scroll;
}
form#picker {
    position: fixed;
    top: 16vh;
    left: 1vw;
}
div#run_date {
    position: absolute;
    top: -6vh;
    right: 0vw;
    font-size: 24px;
    z-index: 9;
    line-height: 26px;
    text-shadow: 1px 1px 2px #afafaf;
    background: #CDD3DB;
}
canvas#estimateChart {
    background: rgba(255,255,255,.8);
    border-radius: 25px;
    width: 0px;
    height: 0px;
    position: relative;
    left: 5vw;
    top: -7vh;
}
div#legend-container {
    position: absolute;
    top: -7vh;
    background: #efefef;
    border-radius: 10px 0px 10px 0;
    padding: 10px 10px 0 5px;
    left: 5vw;
}
#tables {
    position: absolute;
    top: 97vh;
    margin-bottom: 20vh;
}
tr:nth-child(even) {
  background-color: rgba(255,255,255,.1) !important;
}
th {background-color: #03244d; width: 8vw;}

JavaScript

$(function() {
    $("#datepicker").on("change",function(){
        var selected = $(this).val();
        alert(selected);
    });
    $( "#datepicker" ).datepicker();
});