Live search fails on mobile phone?

$("-sharpsearchbar-blog").on("keyup",function (e) {
  e.preventDefault();
var v = $("-sharpsearchbar-blog").val();
if(v.length > 0){

      $.ajax({
        type: "GET",
        url: "search",
        data: "search=" + v,
        success: function(data){

          if(data != ""){
            $("-sharpdisplay").html(data);
          }
          else{
            $("-sharpdisplay").html("no-result");
          }

        }
      });

    }
});

there is no problem with the computer version
enter the fake Beijing, it will print data
, but the weird thing is that
enter Beijing and jump out of Beijing like the "mobile version" is no-result (function like the computer version)
will not get the result unless you add another blank or a line.?
later, I found that there may be a problem with the way the mobile phone is logged in.
I said:
pick up Beijing first, launch the computer version, then turn it into a mobile phone version, and then transfer it to Beijing, just like the work
mobile phone. When I finish calling Beijing, this value will go to the mobile phone.
is the problem with the mobile version. I guess we might have to set up some things.
but I can"t find a relevant solution at all.


update live search.

Menu