JSFiddle - React, Tailwind, and code Playground
HTML
<input id="119715_0" type="radio" name="119715" value="76952" data-logic="0" required /><label for="119715_0">Yes</label>
<input id="119715_1" type="radio" name="119715" value="76953" required /><label for="119715_1">No</label>
JavaScript
$('input[name="119715"]').click(function() {
if ($(this).data('logic') !== undefined) {
alert('Has data-logic');
} else {
alert('Does not have data-logic');
}
});