JSFiddle - React, Tailwind, and code Playground
by shapeshifta
HTML
<input type="checkbox" id="smokerornot"/><label>Raucherzimmer bevorzugt</label>
<input type="text" id="changeme" value="NS"/>
JavaScript
$('#smokerornot').change(function(){
$('#changeme')[0].value = this.checked ? 'S' : 'NS';
});