var parametros = {
"usuario":"angela"
};
$.ajax({
data: parametros,
url: 'procedimientos/check.php',
dataType: 'json',
type: 'get',
beforeSend: function () {
$("#resultado").html("Déjame pensar un poco...");
},
success: function (response) {
//escondemos gif
//mostramos salida del PHP
// jQuery("#resultado").html("response");
var alimentos = JSON.parse(response);
$("#resultado").html(alimentos);
},
error: function (request, error) {
console.log(arguments);
console.log(error);
}
});