I have got a weird jQuery issue that will most likely end up being something ridiculously minor, but after searching for a while I still can't get past it.
The issue
I have got a table with a list of domains. The table consists of two columns - domain name and IP address. 
The IP address columns loads with the content of a loading icon, which is then supposed to be replace with the contents of an ajax call made.
The script is supposed to do a jQuery each() on a data attribute which is on the each IP column, take the data and perform a .get request which then returns that domains ip.
The problem When the .each runs, it checks the ip address and only replaces the final rowsloading icon.
Code
$("[data-domain]").each(function(){
        domain = $(this).data('domain');
        tr = $(this);
        $.get( "/database/ajax/domain/check", { domain: domain } )
          .done(function( data ) {
            tr.html(data);
          });
    });
 
    