JSFiddle - React, Tailwind, and code Playground
by Md Shah
HTML
<div class="show_stores" id="show_store_1">
<input name="store_id" type="radio" 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" id="store_2" value="2" checked='checked' />
<label for="store_2"><b>Warehouse </b>
</label>
</div>
<div class="show_stores" id="show_store_3">
<input name="store_id" type="radio" id="store_3" value="3" />
<label for="store_3"><b>City Store </b>
</label>
</div>
JavaScript
var text = $("input:checked + label").text();
alert(text)