Jquery input array form ajax
<p>How do i get the input array <code>username</code> values in the jQuery variable <code>users</code>?</p>

<pre><code>    &lt;input type='text' name='username[]' class='users' value='test1' /&gt;
    &lt;input type='text' name='username[]' class='users' value='test2' /&gt;
    &lt;input type='text' name='username[]' class='users' value='test3' /&gt;

&lt;div class='submit'&gt;Submit&lt;/div&gt;

    &lt;script type="text/javascript"&gt;
    $(function() {

        $('.submit').click(function() {

            var users = 
        var dataString = 'users=' + users;

            $.ajax({
            type:'POST',
            url:'users.php',
            data: dataString,
            success: function() {


                }
            });
        });


    });
    &lt;/script&gt;
</code></pre>
