Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function exibir_ocultar(){
- var cpf = document.getElementById('cpf');
- var nome = document.getElementById('nome');
- var cnpj = document.getElementById('cnpj');
- var razao = document.getElementById('razao');
- var valor = $("#tipo_pessoa").val();
- if(valor == 'pessoa_fisica'){
- $("#cnpj").hide();
- $("#razao").hide();
- $("#cpf").show();
- $("#nome").show();
- } else {
- $("#cnpj").show();
- $("#razao").show();
- $("#cpf").hide();
- $("#nome").hide();
- }
- };
- var tipo_pessoa = document.getElementById("tipo_pessoa").value;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement