Why is my jQuery generated dropdown not posting back the selected value?
<p>I think I'm missing something simple, but I'm just not seeing it. I have an ASP.NET MVC app that is dynamically building a dropdown based on the value of another dropdown. The dropdown list is being populated correctly but when the form posts back the value of the combo isn't posted back for some reason. </p>

<pre><code>        $(document).ready(function () {
            PopulateList();
            $("#List").change(GetSelectedItem);
        });

        function PopulateList() {
            var timeSlot = $("#Timeslot").val();
            var options = [];
            var list = 0;
            $.getJSON("GetList/" + timeSlot, "", function (data, textStatus) {
            for (var i = 0; i &lt; data.length; i++) {
                options.push('&lt;option value="',
                data[i].ID, '"&gt;',
                data[i].Name, '&lt;/option&gt;');
            }
            $("#List").html(options.join(''));
            if (data.length &gt; 0)
                list = data[0].ID;

            GetSelectedItem(timeSlot, list);
        });
</code></pre>

<p>Further down in the view I have this:</p>

<pre><code>&lt;% Html.BeginForm(); %&gt;
&lt;select id="List" style="width:120px"&gt;&lt;/select&gt;
(lots of HTML removed)
&lt;% Html.EndForm(); %&gt;
</code></pre>

<p>I've double-checked the markup generated by displaying $("#List").html() and it looks OK. I've also checked to make sure the dropdown is enclosed in the form and that there isn't any other unterminated strings around this dropdown that might be interferring with it. I can check the value of the dynamically built dropdown and the value is set correctly. I've watched was is being posted back via Fiddler and Firebug and this field is missing (so it's not MVC filtering it).</p>

<p>What am I missing?</p>
