Search
Generic filters
Exact matches only

Refer to parent element from within ajax call – Jquery

3rd November 2020

Jquery - Ajax

jquery icon

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.

Was this code snippet helpful?

Comment on this Code Snippet?