Accessing $_POST array data with jQUery .val()?
<p>I'm using a jQuery plugin (<a href="http://levycarneiro.com/projects/tag-it/js/tag-it.js" rel="nofollow">tag-it</a>), which generates the form input field:</p>

<pre><code>function create_choice (value){
            var el = "";
            el  = "&lt;li class=\"tagit-choice\"&gt;\n";
            el += value + "\n";
            el += "&lt;a class=\"closetag\"&gt;x&lt;/a&gt;\n";
            el += "&lt;input type=\"hidden\" style=\"display:none;\" value=\""+value+"\" name=\"item[tags][]\"&gt;\n";
            el += "&lt;/li&gt;\n";
            var li_search_tags = this.tag_input.parent();
            $(el).insertBefore (li_search_tags);
            this.tag_input.val("");
        }
</code></pre>

<p>The input field generated by above function can be accessed in HTML form in following way:</p>

<pre><code>&lt;ul id="mytags"&gt;&lt;/ul&gt;
</code></pre>

<p>I can access the tags array by submitting form with PHP like:</p>

<pre><code>$tags = $_POST['item']['tags'];
</code></pre>

<p>Can I get the above array without $_POST using jQuery .val() or some other method? Thanks.</p>
