var input1 = document.getElementById("custom"),
input2 = document.getElementById("email");
function checkForMatch() {
if (input1.value === "phone") {
input2.disabled = true;
} else {
input2.disabled = false;
}
}
input2 = document.getElementById("email");
function checkForMatch() {
if (input1.value === "phone") {
input2.disabled = true;
} else {
input2.disabled = false;
}
}