JSFiddle - React, Tailwind, and code Playground
HTML
<div class="time-wrap" value="25">
</div>
<button></button>
CSS
button{
width: 100px;
height: 30px;
background-color: red;
}
JavaScript
$('.button').click(function(){
if ($('.time-wrap').val() == '25'){
alert('KEK');
}
});