I\'m using this jQuery code:
$.ajax ({ type: \"POST\", url: \"customerfilter.php\", data: dataString, cache: false, success: function(htm
Use json_encode() to convert an associative array from PHP into JSON and use $.getJSON(), which will return a Javascript array.
json_encode()
$.getJSON()
Example:
"valueA", "b" => "valueB")); ?>
In Javascript:
$.getJSON("myscript.php", function(data) { alert("Value for 'a': " + data.a + "\nValue for 'b': " + data.b); });