live search jquery and show to the table

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 : { caricari},
                     dataType"text",
                     successfunction( 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