Trying to figure out how to loop through only elements in a div but not div's in the div
<p>I am building a dynamic form system that will automatically assemble an HTML form and make it interactive by using a single form.js file that will work over all the forms built within the system. I already have the form system complete and for the most part the form.js is done with the small exception of a nested div's bug.</p>

<p><strong>A Little Background</strong>: 
I'll post the form I am testing if it is needed but I think this will be enough to explain my needs.
I am using a form that puts question dependencies in a div so that if the question is answered the dependecy will then show. To better understand how this works, the form system allows for infinite nesting of dependencies. If question 1 has a dependency question and that dependency has a dependency and question 2 has a dependency it would look like:</p>

<pre><code>Question 1:
    -&gt; Dependency Question 1-1
         -&gt; Dependency Question 1-1-1
Question 2
    -&gt; Dependency Question 2-1
</code></pre>

<p>Each section of dependencies go into their own containing div for styling and organization:</p>

<pre><code>&lt;form&gt;    

    &lt;!-- Other elements (not div) mainly form input, labels, and fieldsets--&gt;

    &lt;div id="dep-1" class="dependency"&gt;

        &lt;!-- Other elements (not div) mainly form input, labels, and fieldsets--&gt;

        &lt;div id="dep-1-2" class="dependency"&gt;

            &lt;!-- Other elements (not div) mainly form input, labels, and fieldsets--&gt;

            &lt;div id="dep-2-1" class="dependency"&gt;

                &lt;!-- Other elements (not div) mainly form input, labels, and fieldsets--&gt;

            &lt;/div&gt;

        &lt;/div&gt;

    &lt;/div&gt;

&lt;/form&gt;
</code></pre>

<p>The id's are just for show, they are automated by the form system.</p>

<p><strong>My Problem</strong>:
I have every thing working the way I wanted, or so I thought. The only issue I am having with a master js file to control all forms is the nested divs. On form load, I use jQuery to disable all dependencies to prevent form submission of them. The issue is when I turn them back on. The functionality I want is just for the dependency div I am in to only enable the :input for that div, not within the child div's. Currently, all children divs :input within the parent div are all enabled. I have tried numerous methods to prevent it from going into the children div's and spend over 2 hours on Google and SO. Still no luck... So here I am asking for your help!</p>

<p><strong>form.js code used for this</strong></p>

<pre><code>function _toggleDependencyContainer(id, result) {
    if (result === true) {
        // Allow only input of parent dependency div, not children dependency divs
        $('#'+id).find(':input').each(function() { // **THIS LINE IS THE ISSUE!!**
            $(this).removeAttr("disabled");
        });
        $('#'+id).slideDown();
    } else {
        // Disable all children input through all child divs
        $('#'+id).slideUp().find(':input').each(function() {
            $(this).attr("disabled", "disabled")
        });
    }   
}
function _toggleElementDependencies(element) {
    if (element.type === undefined) {
        console.log('element.type is undefined');
        return;
    }
    // Get the dependency ID and result then toggle
    switch(element.type.toLowerCase()) {
        case 'select':
        case 'select-one':
        case 'select-multiple':
            $("#"+element.id+" option").each(function () {
                var id = element.id+'-'+this.value+'-dep';
                var result = this.selected;               
                if (id === undefined || id == null) {
                    return;
                }
                _toggleDependencyContainer(id, result);             
            });
            return;
            break;
        case 'radio':
        case 'checkbox':
            var id = element.id+'-dep';
            var result = $(element).is(':checked');
            break;
        case 'file':
        case 'password':
        case 'text':
        case 'textarea':
            var id = element.id+'-dep';
            var result = ( $.trim( $(element).val() ) ) ? true : false;
            break;
        default:
            return;
            break;
    }
    if (id === undefined || id == null) {
        return;
    }
    _toggleDependencyContainer(id, result);
}

$(document).ready(function() {

    $('.dependency').hide(); // hide all dependencies
    //
    // Scan page for forms
    // Loop through each form and process the elements to toggle dependencies
    $('form').each(function(i) {
        // Find all the input elements
        $('#'+this.id).find(':input').not(':disabled').each(function(i) {
            _toggleElementDependencies(this);
        });     
    });

    // Monitor form elements to toggle dependencies
    $(':input').blur(function() {
        _toggleElementDependencies(this);
    });
    $(':radio, :checkbox').click(function() {
        $('input[name="'+this.name+'"]').each(function(i) {
            _toggleElementDependencies(this);
        });
    });
    $('select').change(function() {
        _toggleElementDependencies(this);
    });

});
</code></pre>

<p>I am hoping some jQuery master could give me the snippet I am missing. I tried using .not() selector but I think I am using the wrong identifier for the children div. I have tried: </p>

<pre><code>$('#'+id).not('div&gt;div').find(':input').each(...);
$('#'+id).not('div:first').find(':input').each(...);
$('#'+id).not('div:first-chil').find(':input').each(...);
$('#'+id).not('div').find(':input').each(...);
</code></pre>

<p>and many more but I think I am missing something simple..</p>

<p>Thanks in advanced for any help you can provide :)</p>

<p><strong>EDIT</strong>
I am adding my form I am using to help with understanding the layout</p>

<pre><code>&lt;form method="post" action="/_projects/newForm/" id="test" name="test"&gt;
    &lt;fieldset&gt;
        &lt;legend&gt;One&lt;/legend&gt;&lt;label for="first-name"&gt;First Name&amp;nbsp;&lt;span class="required-icon"&gt;*&lt;/span&gt;&lt;/label&gt;
        &lt;input type="text" value="test" class="required" title="First Name" id="first-name" name="first_name"&gt;
        &lt;div class="dependency" id="first-name-dep" style="display: block;"&gt;
            &lt;label for="first-name2"&gt;First Name 2&lt;/label&gt;
            &lt;input type="text" title="First Name 2" id="first-name2" name="first_name2"&gt;
                &lt;div class="dependency" id="first-name2-dep" style="display: none;"&gt;
                    &lt;label for="first-name3"&gt;First Name 3&lt;/label&gt;
                    &lt;textarea title="First Name 3" id="first-name3" name="first_name3" disabled="disabled"&gt;&lt;/textarea&gt;
                &lt;/div&gt;
        &lt;/div&gt;
        &lt;label for="last-name"&gt;Last Name&lt;/label&gt;
        &lt;input type="text" title="Last Name" id="last-name" name="last_name"&gt;
        &lt;label for="last-name2"&gt;Last Name2&lt;/label&gt;
        &lt;input type="text" title="Last Name2" id="last-name2" name="last_name2"&gt;
        &lt;label for="radio-test"&gt;Radio Test&amp;nbsp;&lt;span class="required-icon"&gt;*&lt;/span&gt;&lt;/label&gt;
        &lt;fieldset class="options-cage" id="options-cage-radio-test"&gt;
            &lt;label for="radio-test-1"&gt;
                &lt;input type="radio" class="required" title="Yes" value="1" name="radio_test" id="radio-test-1"&gt;
                &amp;nbsp;Yes
            &lt;/label&gt;
            &lt;label for="radio-test-2"&gt;
                &lt;input type="radio" class="required" title="No" checked="checked" value="2" name="radio_test" id="radio-test-2"&gt;
                &amp;nbsp;No
            &lt;/label&gt;
        &lt;/fieldset&gt;
        &lt;div class="dependency" id="radio-test-1-dep" style="display: block;"&gt;
            &lt;label for="radio-dep"&gt;Radio Dep&amp;nbsp;&lt;span class="required-icon"&gt;*&lt;/span&gt;&lt;/label&gt;
            &lt;input type="text" class="required" title="Radio Dep" id="radio-dep" name="radio_dep"&gt;
                &lt;div class="dependency" id="radio-dep-dep" style="display: none;"&gt;
                    &lt;label for="radio-dep2"&gt;Radio Dep 2&lt;/label&gt;
                    &lt;input type="text" title="Radio Dep 2" id="radio-dep2" name="radio_dep2" disabled="disabled"&gt;
                        &lt;div class="dependency" id="radio-dep2-dep" style="display: none;"&gt;
                            &lt;label for="radio-dep3"&gt;Radio Dep 3&amp;nbsp;&lt;span class="required-icon"&gt;*&lt;/span&gt;&lt;/label&gt;
                            &lt;fieldset class="options-cage" id="options-cage-radio-dep3"&gt;
                                &lt;label for="radio-dep3-1"&gt;
                                    &lt;input type="radio" class="required" title="Yes" value="1" name="radio_dep3" id="radio-dep3-1" disabled="disabled"&gt;&amp;nbsp;Yes&lt;/label&gt;
                                &lt;label for="radio-dep3-2"&gt;
                                    &lt;input type="radio" class="required" title="No" checked="checked" value="2" name="radio_dep3" id="radio-dep3-2" disabled="disabled"&gt;&amp;nbsp;No&lt;/label&gt;
                            &lt;/fieldset&gt;
                            &lt;div class="dependency" id="radio-dep3-1-dep" style="display: none;"&gt;
                                &lt;label for="radio-dep4"&gt;Radio Dep 4&amp;nbsp;&lt;span class="required-icon"&gt;*&lt;/span&gt;&lt;/label&gt;
                                &lt;input type="text" class="required" title="Radio Dep 4" id="radio-dep4" name="radio_dep4" disabled="disabled"&gt;
                                    &lt;div class="dependency" id="radio-dep4-dep" style="display: none;"&gt;
                                        &lt;label for="radio-dep5"&gt;Radio Dep 5&lt;/label&gt;
                                        &lt;input type="text" title="Radio Dep 5" id="radio-dep5" name="radio_dep5" disabled="disabled"&gt;
                                            &lt;div class="dependency" id="radio-dep5-dep" style="display: none;"&gt;
                                                &lt;label for="radio-dep6"&gt;Radio Dep 6&amp;nbsp;&lt;span class="required-icon"&gt;*&lt;/span&gt;&lt;/label&gt;
                                                &lt;fieldset class="options-cage" id="options-cage-radio-dep6"&gt;
                                                    &lt;label for="radio-dep6-1"&gt;
                                                        &lt;input type="checkbox" class="required" title="Yes" value="1" name="radio_dep6" id="radio-dep6-1" disabled="disabled"&gt;
                                                        &amp;nbsp;Yes
                                                    &lt;/label&gt;
                                                    &lt;label for="radio-dep6-2"&gt;
                                                        &lt;input type="checkbox" class="required" title="No" checked="checked" value="2" name="radio_dep6" id="radio-dep6-2" disabled="disabled"&gt;
                                                        &amp;nbsp;No
                                                    &lt;/label&gt;
                                                &lt;/fieldset&gt;
                                            &lt;/div&gt;
                                    &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                &lt;/div&gt;
        &lt;/div&gt;
    &lt;/fieldset&gt;
    &lt;fieldset&gt;
        &lt;legend&gt;Two&lt;/legend&gt;&lt;label for="last-name3"&gt;Last Name3&lt;/label&gt;
        &lt;input type="text" title="Last Name3" id="last-name3" name="last_name3"&gt;
            &lt;label for="checkbox-test"&gt;Checkbox Test&amp;nbsp;&lt;span class="required-icon"&gt;*&lt;/span&gt;&lt;/label&gt;
            &lt;fieldset class="options-cage" id="options-cage-checkbox-test"&gt;
                &lt;label for="checkbox-test-10"&gt;
                    &lt;input type="checkbox" class="required" title="Yup" value="10" name="checkbox_test[]" id="checkbox-test-10"&gt;&amp;nbsp;Yup&lt;/label&gt;
                &lt;label for="checkbox-test-12"&gt;
                    &lt;input type="checkbox" class="required" title="Nope" checked="checked" value="12" name="checkbox_test[]" id="checkbox-test-12"&gt;&amp;nbsp;Nope&lt;/label&gt;
            &lt;/fieldset&gt;
            &lt;label for="select-test"&gt;Select Test&amp;nbsp;&lt;span class="required-icon"&gt;*&lt;/span&gt;&lt;/label&gt;
            &lt;select title="Select Test" id="select-test" name="select_test" class="input-select required"&gt;
                &lt;option value=""&gt;- Please Select&lt;/option&gt;
                &lt;option value="1"&gt;one&lt;/option&gt;
                &lt;option value="2"&gt;two&lt;/option&gt;
            &lt;/select&gt;
    &lt;/fieldset&gt;
    &lt;fieldset&gt;
        &lt;input type="hidden" value="test" id="formID" name="formID"&gt;
        &lt;input type="hidden" value="dd7c7fae86db8988669231b67ce637138aa6c180" id="csrf" name="csrf"&gt;
        &lt;input type="submit" value="Submit"&gt;
        &lt;input type="reset" title="Reset the form?" value="Reset"&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</code></pre>
