[Solved] return false is not working inside jQuery Ajax

Last Reply one month ago By Rockstar8

Posted one month ago

Hi All,

Any way to stop the postback/next action based on result inside success

                $.ajax({
                    type: "POST",
                    url: url,
                    data: data,
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (result) {
                        if (result == "" || result == null || result == "undefined") {
                            return false
                        }
                    }
                });

 

Posted one month ago

https://stackoverflow.com/questions/9422215/return-false-not-working-inside-jquery-ajax