JSFiddle - React, Tailwind, and code Playground
HTML
<input type='checkbox' name='ch1'>
This text must change !!!
<input type='checkbox' name='ch2'>
JavaScript
var replacedText = $('input[name=ch1]').parent().html().replace('This text must change !!!', 'replaced text');
$('input[name=ch1]').parent().html(replacedText);