I've got this code:
$(document).ready(function() {
$('#inverter_err').change(function() {
var qString = 'err=' +$(this).val();
$.post('err_query.php', qString, processResponse);
});
function processResponse(data) {
if(data != "false") {
$("#result").html(data).show("slow");
}
else {
$("#result").hide("slow");
}
}
});
When there's a positive result from the err_query.php (which is a simple sql query resulting in a echo json_encode($array);), the result comes as a ["The result"].
How do I remove the [" "] ? I just need to display the text.