Problems accessing newly built elements
<p>This one is killing me :(. I'm loading saved filter sets and building each filter dynamically, inside a $.get() response function. I'm finding that, even though I'm correctly creating unique IDs for each of my selects and inputs, I'm not able to access the values of these inputs while inside the function that builds them. I tried multiple ways of adding delays to the jQuery selection process but nothing worked.</p>

<pre><code>function onSavedFilterChange(item){
    $.get('url',
        function(response) {
            //filters with uniquely ID'd inputs get built here
            //Can't access them here, immediately after creation
        }
    );
    // Can't access them here either
}
$(document).ready(function(){
    $('#randomButton').click(function(){
        // but here, I can access the new inputs!!
    });
});
</code></pre>

<p>My way of adding the elements is a bit complicated and may be the root of my problems. For each saved filter set returned, I start by cloning an initialized div and setting it's id attribute:</p>

<pre><code>newFilter = $('#initialFilter')
.clone()
.removeAttr('id')
.attr('id', 'fd_'+filterCount);
</code></pre>

<p>This div has three inputs; the first two are selects, the third can be a select or a text input. After that div has been cloned, I set the value of the first select like so:</p>

<pre><code>var thisSelect = newFilter.find('select.filterBy');
var thisFieldName = rows[filterCount-1]['FIELD_NAME'];
thisSelect.val(thisFieldName);
</code></pre>

<p>Next, depending upon the value of thisFieldName, I build the options of the second select using another ajax call, and I build the third input using yet another ajax call.</p>

<p>And it just occurred to me... because I'm modifying an existing site built with ColdFusion, the last two ajax calls are called through ExtJS ajax proxies. I'm gonna bet that ExtJS isn't playing nice with jQuery and I'm going to have to rewrite those two functions.</p>

<p>Either that or I'm insane to nest get calls inside get calls???</p>
