Accessing data status with jQuery
I am using the following to set up a simple AJAX call:
if(validateEmail(email_val)){
$.post($('#form_url').val(), { email: email_val },
function(data) {
console.log(data);
} );
}
It all works but how I can access "status":true?
I want to do:
if(status is true){ call this function }
Thanks Alessandro
No comments:
Post a Comment