JSFiddle - React, Tailwind, and code Playground

by Anu Vidhya

HTML

<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<table id="active">

</table>
<input type="button" class="addmore">Add more

CSS

.addmore
{
  position absolute;
  left:500px;
  top:0px;
}

JavaScript

$(document).ready(function(){
$(".addmore").click(function(){
$("#active").append('<tr><td><input type="date" class="activefrom"><input type="date" class="activeuntil"></td></tr>')
});
$('body').on('change','.activefrom',function(){
console.log("value picked");
});
$('body').on('change','.activeuntil',function(){
console.log("value picked1");
});
});