jQuery: Trying to run $.get within .each function
<p>This code does get the index value of each element with the "profileName" class. It also does run a $.get using each index value as the url. But it fails when I try to make it put the ajax response into each element with the "details" class that is the child element of each "profilName" div. Is this doable? </p>

<pre><code>$('.profileName').each(function(index) {
    var urlVal = $(".showProfile", this).attr('profile');
    $.get(urlVal, function(data) {
        $(".details", this).html(data);
    }, "html");
});
</code></pre>
