I\'m using this jQuery code:
$.ajax
({
type: \"POST\",
url: \"customerfilter.php\",
data: dataString,
cache: false,
success: function(htm
Make your response return JSON, you'll need to change your jQuery to this, so the expected dataType is json:
$.ajax
({
type: "POST",
url: "customerfilter.php",
dataType: 'json',
cache: false,
success: function(data)
{
$(".custName").html(data.message1);
$(".custName2").html(data.message2);
}
});
Then you need to encode your response as a JSON Array:
"Hi",
"message2" => "Something else")
) ?>