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