jQuery .each() AJAX
<p>The loop works. But the updating of the title does not. The alert that is commented out does show that the data is correct.</p>

<pre><code>&lt;script&gt;
    var usercount = 0;
    var nbw = '';
    var _$this = '';
    $('.alphabet').each(function () {
        _$this = $(this);
        nbw = $(this).val();
        $.ajax({
            type: "Get",
            url: "cfc/basic.cfc?method=CountUsersByLetter&amp;returnformat=json",
            data: "nbw=" + nbw,
            datatype: "html",
            success: function (response) {
                usercount = parseInt(response.substring(0, 10));
                //$(_$this.target).attr('title', usercount);
            },
            error: function (xhr, textStatus, errorThrown) {
                alert('errorThrown');
            }
        });
        $(_$this.target).attr('title', usercount);
        //alert(nbw + ' usercount=' + usercount);
    });
&lt;/script&gt;
</code></pre>
