JSFiddle - React, Tailwind, and code Playground
HTML
<select id="service-type" onChange="hamburger()">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<input type="radio" name="receipt" id="receiptNo">
<input type="radio" name="receipt" id="receiptYes">
JavaScript
var e = document.getElementById("service-type");
var ServiceUser = e.options[e.selectedIndex].text;
function hamburger() {
if (ServiceUser.value === "2") {
document.getElementById("receiptNo").disabled = true;
document.getElementById("receiptYes").checked = true;
}
}