JSFiddle - React, Tailwind, and code Playground
by Lilith
HTML
<input type="checkbox" id="poseBox' + i + '" class="pose" /><input id="pose' + i + '" disabled /><input id="text' + i + '" ><br>
<input type="checkbox" id="poseBox' + i + '" class="pose" /><input id="pose' + i + '" disabled /><input id="text' + i + '"><br>
<input type="checkbox" id="poseBox' + i + '" class="pose" /><input id="pose' + i + '" disabled /><input id="text' + i + '" ><br>
<input type="checkbox" id="poseBox' + i + '" class="pose" /><input id="pose' + i + '" disabled /><input id="text' + i + '">
JavaScript
$( ":checkbox" ).change( function() {
if ( $( this ).hasClass( "pose" ) ) {
$( this ).next().prop( "disabled", !$( this ).is( ':checked' ) );
}
} );