Good night I would like to know if it is possible in the code below to insert this function in ajax. I would like to only submit the search after 2 seconds of the user finishing typing, replacing the "onkeyup".
PS:This is for an Ajax Live Search.
function pesquisar(value) {
$("#results").show();
$.ajax({
type:'post',
url:'/classes/searchfetch.php',
data: {s:value},
success: function (data){
$("#results").html(data);
},
}); };
I would be very grateful if you could help me.