JSFiddle - React, Tailwind, and code Playground
HTML
<div class="radio-spoof">
<input type="radio" name="enquiry" value="General enquiry" class="radio"/>
<div class="checked">hulk test</div>
</div>
<label for="general_enquiry">General enquiry</label>
<div class="radio-spoof">
<input type="radio" name="enquiry" value="Request a brochure" class="radio" checked="true"/>
<div class="checked">ironman test</div>
</div>
<label for="request_a_brochure">Request a brochure</label>
JavaScript
$(function() {
$('.checked').hide();
$('input').click(function() {
if ($('input[type=radio]').is(':checked')) {
alert('!')
$(this).next('div').show();
}
});
});