live search jquery and show to the table
hello, i'm creating live search and show it to the table
here the ajax
$(
"#cari").
on(
'keyup',
function(){
var
cari
=
$(
"#cari").
val();
$.
ajax({
type:
"post",
url:
"do_kasircari.php",
data : {
cari:
cari},
dataType:
"text",
success:
function(
data)
{
$(
"#hasil").
load(
data);
console.
log(
cari);
console.
log(
data);
}
})
});
here is the console.log
data is right, but not showing. why? please help, thanks