How to Separate a List into Two Lists
<p>In my form, I have multiple fields (hidden text boxes) which has the same name (eform_id).
(For example i have 7 hidden textboxes which contains values like this 1234,-1235,1236,1237,-1238,-1239,1240...</p>

<p>I am getting those values to my js file like this.</p>

<pre><code>var eformDetailIds=$("[name=eform_id]").map(function(){
    return $(this).val() }).get();
</code></pre>

<p>Now my requirement is I have to separate this eformDetailIds into two lists..(or a string of comma separated values) so that first list contains all positive values and second list contains all negative values..</p>

<p>This is a very urgent requirement and I am seeking your help in this.
Please help me with suitable code which resolves my problem.</p>

<p>Thans in advance
-sathya</p>
