0
Hello, I have a little doubt on how to do this:
$(function(){
$("input").keyup(function(){
    var tipo = $(this).attr("name");
    var text = $(this).val();
    $.ajax({
        url: "minhaurl",
        data: {tipo: text},
        type: "POST",
        success: function(result){
            $("#replaceResultSearch").html(result);
        }
    });
});
});
note that the "type" parameter comes from the "name" attribute of an input (User has some inputs in a table, and depending on what they type in each input, they search in the database according to this table column) But when I pass "type" in ajax, it treats this "type" as the name of the request, and not the value it has (it can be "responsible/subject/date/etc") what can be done? thank you
Putz, truth! I had forgotten that, thank you, solved my problem!
– Everton Neri