$.post('status.ajax.php', {deviceId: id})
    .done( function(msg) { ... } )
    .fail( function(xhr, textStatus, errorThrown) {
        alert(xhr.responseText);
    });

http://stackoverflow.com/a/12116790/4669143

Published On: August 6, 2018Categories: jQueryTags: