JSFiddle - React, Tailwind, and code Playground
by dixalex
JavaScript
if ($('#Q37_WRAPPER input:checkbox').filter(function(index, element) {return $(element).is(':visible');}).length === 1) {
$('#Q37_WRAPPER input:checkbox').filter(function(index, element) {return $(element).is(':visible');}).prop('checked', true).change();
document.PdcSurvey.PdcButtonPressed.value = 'next';
$('form')[0].submit();
}