JSFiddle - React, Tailwind, and code Playground
by Md Shah
HTML
<div class="show_stores" id="show_store_1">
<input name="store_id" type="radio" onChange="set_store_id(this.value,'Y','Y');" id="store_1" value="1" />
<label for="store_1"> <b>Head Office </b>
</label>
</div>
<div class="show_stores" id="show_store_2">
<input name="store_id" type="radio" onChange="set_store_id(this.value,'N','Y');" id="store_2" value="2" />
<label for="store_2"> <b>Warehouse </b>
</label>
</div>
<div class="show_stores" id="show_store_3">
<input name="store_id" type="radio" onChange="set_store_id(this.value,'Y','Y');" id="store_3" value="3" />
<label for="store_3"> <b>City Store </b>
</label>
</div>
JavaScript
$('#store_3').prop('checked',true);