Not too messy to use callbacks properly.
Just create a function outside the call .post()and call it inside .post()if you think this is appropriate. You make a lot of callbacks and use them inside AJAX calls in a very flexible way.
, alert(), - alert() .post(). , .
JavaScript . .