4
Currently I have a customer search system that can be searched by Cpf, cnpj, phone, address, email and various other information, I can search a customer asking if there is a customer possessing an email and a phone,
my doubt and the next, I use a tablist who has a form
and in that form
i can only get the first field filled and not all, in case I need to get all fields that are filled, example:
<form id='form_pesquisa'>
<label for='nome'>Nome</label>
<input type='text' name='nome' id='nome'/>
<label for='email'>Email</label>
<input type='text' name='email' id='email'/>
</form>
$("#nome,#email").change(function(){
var search = $('#form_pesquisa').find(":text:visible").val();
console.log(search);
});
success, thanks for the knowledge, for a long time I use . val(); but I had forgotten to use each() to go through the fields picking up the values.
– Gabriel Rodrigues