JSFiddle - React, Tailwind, and code Playground

HTML

<div class="big">
This is a div 1
<input id="chb" type="radio" />
</div>

<br/>

<div class="big">
This is a div 2
<input id="chb" type="radio" />
</div>

CSS

.big {

    width:100px;
    height:100px;
    background-color:red;
    cursor:pointer;

}

.hli {

    border:2px solid blue;
    
}

/*.chb{display:none;}*/

JavaScript

$('.big').click(function() {
$('.hli').toggleClass('hli');    
$(this).toggleClass('hli');
});