How to pass Array to MVC Controller with Jquery?
<p>I am beginner to develope .Net MVC 5 application. But I have some problem with passing array or object to controller with Jquery. </p>

<p>I'm adding dynamically input fields with button. I want to pass input's data to controller.  But I couldn't succeed.</p>

<p>Html Section is like that;</p>

<pre><code>        &lt;div id='TextBoxesGroup'&gt;
            &lt;div id="TextBoxDiv1"&gt;
             &lt;label&gt;Textbox #1 : &lt;/label&gt;&lt;input type='text' id='textbox1'&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;input type='button' value='Add Button' id='addButton'&gt;
        &lt;input type='button' value='Remove Button' id='removeButton'&gt;
        &lt;input type='button' value='Get TextBox Value' id='getButtonValue'&gt;
</code></pre>

<p>Get Value button function is like that;</p>

<pre><code> $("#getButtonValue").click(function () {
            var list = new Array();
            for (i = 1; i &lt; counter; i++) {
                list[i] = $('#textbox' + i).val();
                alert(list[i]);
            }
            var postData = { values: list };

            $.ajax({
                type: "POST",
                url: "/Surveys/PostQuestionAndOptions",
                data: postData,
                success: function (data) {
                    alert(data);
                },
                dataType: "json",
                traditional: true
            });
        });
</code></pre>

<p>Even I set "traditional" by true ,  the model is null.</p>

<pre><code>[HttpPost]
        public JsonResult PostQuestionAndOptions(string[] model)
        {
            return Json(true);
        }
</code></pre>

<p>Could any one help me ? Thank you.</p>