|
@@ -70,8 +70,7 @@ function retrievingCepInputs(cepInputs) {
|
|
if ('erro' in cepInputs) {
|
|
if ('erro' in cepInputs) {
|
|
clearCepInputs();
|
|
clearCepInputs();
|
|
alert("CEP não encontrado.");
|
|
alert("CEP não encontrado.");
|
|
- }
|
|
|
|
- else {
|
|
|
|
|
|
+ }else {
|
|
document.getElementById('endereco').value = (cepInputs.logradouro);
|
|
document.getElementById('endereco').value = (cepInputs.logradouro);
|
|
document.getElementById('bairro').value = (cepInputs.bairro);
|
|
document.getElementById('bairro').value = (cepInputs.bairro);
|
|
document.getElementById('cidade').value = (cepInputs.localidade);
|
|
document.getElementById('cidade').value = (cepInputs.localidade);
|
|
@@ -97,6 +96,7 @@ function searchCep(valor) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+
|
|
function cpfMask() {
|
|
function cpfMask() {
|
|
let i = document.getElementById("cpf").value.length;
|
|
let i = document.getElementById("cpf").value.length;
|
|
if (i === 3 || i === 7)
|
|
if (i === 3 || i === 7)
|