I'm working with JSON to make my login script, and so I'm using the following in my script:
$.getJSON("link to PHP where to get the JSON data from", function (data) {
// THE CODE TO BE EXECUTED
});
So when there is an data return from the PHP in JSON, the code will be executed, but what is the best way to make an else structure? So when there is no return from PHP/JSON, to execute an other code?
Thanks in advance