JSFiddle - React, Tailwind, and code Playground
HTML
<div id='#div'>
<label>Event Location <span class="req">*</span>
</label>
<br>
<input type="radio" name="a22" id="a22_0" value="Lafayette LA">Lafayette LA
<br>
<input type="radio" name="a22" id="a22_1" value="Houston TX">Houston TX
<br>
<input type="radio" name="a22" id="a22_3" value="San Antonio TX">San Antonio TX</div>
JavaScript
function replaceTextAfter(selector, newtext) {
var textnode = $(selector).parent().contents().filter(function () {
return this.nodeType == 3 && $(this).prev().is($(selector));
});
textnode[0].data = newtext;
}
replaceTextAfter('#a22_0', 'abc');