I've tried to show MYSQL result inside JQUERY AUTOCOMPLETE,the result is show space before result value.And then I try to check with firebug show :
1 //show space
2 046A
3
this my php script:
$sql="SELECT lotno FROM dataserial
WHERE model='".$Mod."' AND startserial <= '".$Ser."'
AND endserial >= '".$Ser."'";
$res=mysqli_query($sql) or die(_ERROR26.": ".mysqli_error());
this my ajax :
....
success: function(res){
$('#lotprod').attr("value",res);
}
....
$res result:
Resource id #6