0
Good morning I would like a tip on checked, select option as I do to clear the fields if a person selects an option
<form method="post">
<input type="hidden" name="id" value="<!--# Valor=Cliente.Id #-->" />
<div class="row">
<div class="small-12 columns">
<label class="required">Tipo de cliente</label>
<input type="radio" id="rjuridica" class="switchVal" data-show="juridica" data-hide="fisica" name="atipo" value="juridica" <!--# Fazer=Cliente.ChecarTipo.Juridica #-->>
<label for="rjuridica">Pessoa jurídica</label>
<input type="radio" id="rfisica" class="switchVal" data-show="fisica" data-hide="juridica" name="atipo" value="fisica" <!--# Fazer=Cliente.ChecarTipo.Fisica #-->>
<label for="rfisica">Pessoa física</label>
</div>
</div>
would like when person clicked on legal person to clear the field of imput Cpf with old information as physical person clear the cnpj of the field
<div class="small-3 columns">
<label class="required">CPF</label>
<input class="cpf" type="text" name="acpf" value="<!--# Valor=Cliente.Cpf #-->"/>
</div>
<div class="small-3 columns">
<label class="required">CNPJ</label>
<input class="cnpj" type="text" name="acnpj" value="<!--# Valor=Cliente.CNPJ #-->"/>
</div>
by jquerry or php
It worked thanks XD
– Luketa99
A pleasure to help ;)
– I_like_trains