$.ajax({ async: true, type: "POST", url: "panel.php", dataType: "JSON", success: function(data) { [B]if(data.error)[/B] { } } });