use .done in place of complet.

use .done in place of complet.

hi

Deprecation Notice: The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks are removed as of jQuery 3.0. You can use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.

  1. my doubt is does the above stmt says that follwing way of using  will be depricated        $.ajax({
                url :"views/departments/create.cshtml",
                datatype: "xml",
            success: function( data ){
                alert(data);
            },
            global :true,
            error : function(data){
                alert("unable to process request");
            }
            });
and following will be used

  1.  $.ajax({
                url: "views/departments/create.cshtml",
                datatype: "html",
         
                global: false
           
            })
              .done(function (data) {
                  alert("done to process done");
              })
             .fail(function (data) {
                 alert("unable to process done");
             }).always(function () {
                 alert("complete");
             });

yours sincerely