JSFiddle - React, Tailwind, and code Playground
HTML
<div class="clsName"> <input type="number" name="first" id="first"> <input type="number" name="second" id="second"> <input type="number" name="third" id="third">
</div>
CSS
.container {
overflow: auto;
width: 960px;
margin: auto;
}
.square {
height: 50px;
width: 50px;
border: 1px solid;
display: block;
float: left;
}
.new_row {
clear:both;
}
.square:hover {
background-color: red;
}
JavaScript
$(document).ready(function() {
$(".clsName input").keyup(function () {
console.log($(this).attr('id'));
});
});