Problems trying to pass an array

Problems trying to pass an array

Okay I have some PHP code that currently works by; creating an array 'values[indexed by ID's of packets]' as the name tag in the form below. (forget the syntax ive removed alot to fit in this post) the important thing to see if Input Types are in a loop at there can be any number of them, the text fields are put in an array which is indexed by $packet['piid']

                            <?php foreach($packages as $packet):?>                 
                                                <input type="text" name="values[<?php echo $packet['piid']; ?>]" value="<?php echo $packet['value']; ?>" />
                                                </td>
                        <?php endforeach; ?>
                       
            </table>
        <input type="submit" value="Submit"  />
                        </form>

When the values are posted to my PHP script I can run through the array with the code

foreach ($_POST[values] as $piid => $newValue)
    {
       
          echo 'piid' . $piid;
          echo 'value = ' . $newValue;




}

This all works, my problem is how would I use JQuery to control the script below to pick up the array
 <select name="importance[<?php echo $answer['aid']; ?>]">  so that it can be passed to my PHP script?
Each Answer in the loop has a selectmenu so they can choose how important that answer it is to them. They can be of variable length thats why its in a loop.

This is the code I have so far

<form>
<input type="hidden" id="serviceid" value="<?php echo $serviceid; ?>"  />
<table cellpadding="5" cellspacing="5" border="1">
    <tr>
        <th>Answer</th>
        <th>Relation to Packet</th>
    </tr>
    <?php foreach ($answers as $answer): ?>
    <tr>
        <td > <?php echo $answer['atext']; ?>
        </td>
        <td>   
                    <select name="importance[<?php echo $answer['aid']; ?>]">                       
                                  <option value="0">NO</option>
                                  <option value="25">Unlikely</option>
                                  <option value="50" selected="selected">Neutral</option>
                                  <option value="75">Perhaps</option>
                                  <option value="100">YES</option>
                       </select>
                  
        </td>
       </tr>   
    <?php endforeach; ?>
</table> 
<input type="button" id="nextQ" value="Next"  />
</form>

How can I index each answerID with with a importance value and pass the array to PHP. I dont want to make the array in JQuery, there must be an easier way of passing this? Like in the first example at the top.
Any help would be greatly apprieciated :)