In MVC I am getting following error :
jQuery.Deferred exception: $(...).parents(...).andSelf is not a function
I just Installed the latest version of jQuery via NUGET. I'm getting stuck because of the above mentioned error.
Sir, the andSelf() is deprecated in version 1.8 and removed from 3.0. that's why the above error is occurred. Here is some description: https://api.jquery.com/andself/
I just replaced andSelf() with addBack() in jQuery min file .
Now working perfectly .
andSelf()was deprecated in jQuery 1.8, removed in jQuery 3, and replaced byaddBack().