5 level interdependent select list
<p>I am so glad there are places like this so that people can have their problems answered, even for beginners like me! I have no clue were to go from here.</p>

<p>I am trying to create an interdependent that lists car makes, car models, year,  driver and scale.</p>

<p>I have created the fields and I can populate the car makes and car models, depending on the selection made. I am stuck on how to populate the 'year' field depending on the selections made in the previous boxes. I understand that the first box needs a function. Here is my code"</p>

<p>HTML:</p>

<pre><code>&lt;form name="selectionForm"&gt;
    &lt;select name="makes" id="makes" size="3" style="width:125px"&gt;
        &lt;option selected&gt;Select a Make&gt;&gt;&lt;/option&gt;
    &lt;/select&gt;
    &lt;select name="models" id="models" size="3" style="width:125px"&gt;&lt;/select&gt;
    &lt;select name="years" id="years" size="3" style="width:125px"&gt;&lt;/select&gt;
    &lt;select name="drivers" id="drivers" size="3" style="width:125px"&gt;&lt;/select&gt;
    &lt;select name="scales" id="scales" size="3" style="width:125px"&gt;&lt;/select&gt;
&lt;/form&gt;
</code></pre>

<p>JavaScript:</p>

<pre><code>jQuery(function($) {
    initModels();

    function initModels() {
        var makesAndModels = {
            'Ford': ['Fiesta', 'Focus', 'Mondeo'],
            'Vauxhall': ['Astra', 'Cavalier', 'Vectra']
        };

        // Populate makes
        $.each(makesAndModels, function (k, v) {
            $('#makes').append('&lt;option&gt;' + k + '&lt;/option&gt;');
        });

        // Populate models
        $('#makes').change(function() {
            var $models = $('#models');

            $models.html("");

            var models = makesAndModels[$(this).val()];

            $.each(models, function (k, v) {
                $models.append('&lt;option&gt;' + v + '&lt;/option&gt;');
            });
        });
    }
});
</code></pre>

<p>I would much appreciate some direction from yourselves because I have no clue where to go from here.</p>
