JSFiddle - React, Tailwind, and code Playground
by alachgar
HTML
<div>
Phone No.:<input type="text" id="phone" /><br />
Email Address:<input type="text" id="email" /><br />
Voice:<input type="radio" name="voice" id="voice" value="Yes" /><input type="radio" name="voice" id="voice" value="No" />
<br />
<br />
<input type="radio" name="preferred" id="preferred" disabled />Rents
</div>
JavaScript
$('input[type="text"], input[type="radio"]').on('input', function() {
if ($('#phone').val().length > 0 && $('#email').val().length > 0 && $('#voice').val().length > 0) {
$('#preferred').prop('disabled', false);
} else {
$('#preferred').prop('disabled', true);
}
});