I am using an AJAX function, and with the result I am doing a $('.class').each to perform some logic.
The problem is that calling $(this) to retrieve to each object, refers to the AJAX function instead of the element found.
How can I refer to the element found in the each function?
$.ajax({url: "myurl", success: function(result){
                $(".my_class").each((index, dom) => {
                    console.log(($(this)));   //this is the ajax funct, not the object i want
                });
         });
