I currently 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 having an email and a phone,
my question and the following, I use a tablist that has a form
and in this form
I can get only the first field filled and not all, in case I need to get all the fields that are filled, eg: p>
<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);
});