[Solved] return false is not working inside jQuery Ajax

Last Reply 16 days ago By Rockstar8

Posted 23 days 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
                        }
                    }
                });

 

You are viewing reply posted by: Rockstar8 16 days ago.
Posted 16 days ago

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