Refer to parent element from within ajax call – Jquery
3rd November 2020
Jquery - Ajax
If you use $(this) within the ajax code it will not find the element you need.
Get the element at the beginning using (this) and create a variable of it. Then you can late refer to this variable in the ajax part.