Submit jQuery multiple date picker form as POST data
<p>I love this jQuery datepicker that I want to implement on a PHP form with other input boxes
<a href="http://multidatespickr.sourceforge.net/" rel="nofollow">http://multidatespickr.sourceforge.net/</a></p>

<p>When the user hits a submit button they are brought to another page update.php where the form data is obtained via POST.</p>

<p>I'm looking for a line to add to the javascript so I can somehow access the array of multiple dates in the multiple datepicker via POST:</p>

<pre><code>var latestMDPver = $.ui.multiDatesPicker.version;
        var lastMDPupdate = '2012-03-28';
  var dates = $('#simpliest-usage').multiDatesPicker('getDates');



            // Version //
            //$('title').append(' v' + latestMDPver);
            $('.mdp-version').text('v' + latestMDPver);
            $('#mdp-title').attr('title', 'last update: ' + lastMDPupdate);


            // Documentation //
            $('i:contains(type)').attr('title', '[Optional] accepted values are: "allowed" [default]; "disabled".');
            $('i:contains(format)').attr('title', '[Optional] accepted values are: "string" [default]; "object".');
            $('#how-to h4').each(function () {
                var a = $(this).closest('li').attr('id');
                $(this).wrap('&lt;'+'a href="#'+a+'"&gt;&lt;/'+'a&gt;');
            });
            $('#demos .demo').each(function () {
                var id = $(this).find('.box').attr('id') + '-demo';
                $(this).attr('id', id)
                    .find('h3').wrapInner('&lt;'+'a href="#'+id+'"&gt;&lt;/'+'a&gt;');
            });

            // Run Demos
            $('.demo .code').each(function() {
                eval($(this).attr('title','NEW: edit this code and test it!').text());
                this.contentEditable = true;
            }).focus(function() {
                if(!$(this).next().hasClass('test'))
                    $(this)
                        .after('&lt;button class="test"&gt;test&lt;/button&gt;')
                        .next('.test').click(function() {
                            $(this).closest('.demo').find('.box').removeClass('hasDatepicker').empty();
                            eval($(this).prev().text());
                            $(this).remove();
                        });
            });
        });
</code></pre>
