how to pass multiple values to a function in jquery to
<p>I have this list of comments that i want to remove from database using AJAX, and fadeout from current view with Javascript.</p>

<p>I call this function <code>removeComment()</code> which sends ID of div to be removed to server ( ID is also row id in database )</p>

<p>The problem i have is, after i run the function first time, it stops working.</p>

<pre><code>jquery code

function removeComment(PostId) {

    var commentid = 'com' + PostId;

    $(document).ready(function() {
        $(commentid).fadeToggle('slow');

        // send to php script
        $.ajax({
            type: 'POST',
            cache: false,
            url: 'actions/adminProcessor.php',
            data: 'action=removeComment' + '&amp;PostId=' + PostId,
            success: function(done) {
                alert(done);
            }
        });
    }); // &lt;-- Sorry, was missing a '}'
}
</code></pre>

<p>and below is the html of the comment list and how the functionis called</p>

<pre><code>                    &lt;div class="comments" id="com3"&gt;
      &lt;label&gt;&lt;admin&gt;UD&lt;/admin&gt;&lt;/label&gt;&lt;a href="Javascript:removeComment('1')"&gt;Remove&lt;/a&gt;
      &lt;span&gt;17/09/12&lt;/span&gt;
      &lt;p&gt;adfadfadfadf&lt;/p&gt;
      &lt;/div&gt;
    &lt;div class="comments" id="com3"&gt;
      &lt;label&gt;&lt;admin&gt;UD&lt;/admin&gt;&lt;/label&gt;&lt;a href="Javascript:removeComment('3')"&gt;Remove&lt;/a&gt;
      &lt;span&gt;17/09/12&lt;/span&gt;
      &lt;p&gt;adfadfadfadf&lt;/p&gt;
      &lt;/div&gt;
</code></pre>

<p>please i would like to know where i got it wrong</p>

<p>below is the php script </p>

<pre><code>            if($action == "removeComment"){ 
            extract($_POST) ;
            $query = "DELETE FROM comments WHERE id = '$cId'" ;
            $result = mysql_query($query);
            }
</code></pre>
