0
Person I need a help from you.
I need a validation which is as follows.
In my form I have two telephone fields, TEL1 and TEL2.
Validation is as follows if TEL2 == TEL1.
Can someone help me?
JS:
$('[name="telc2"]').change(function () {
ValidacaoTelefone();
});
function ValidacaoTelefone() {
var telefone1 = ('[name="telc1"]').val();
var telefone2 = ('[name="telc2"]').val();
if (telefone2 === telefone1) {
console.log("teste");
}
}
inform your code to help, if there is something wrong we will guide.
– Wilson Rosa Gomes
What is your question? The question seems like a code order... There is none that serves as a basis?
– DiegoSantos
edited the top with the code
– Leonardo Macedo