how to select a specific row in jquery?
<p>I have a table of users and the last column of each row has a delete button which delete the corresponding user. I have this code which deletes the user through AJAX and then hide the row.</p>

<pre><code>$(document).ready(function(){
    var id=$('#pass_id');
    var temp_id=id.val();

    $('#deletebutton').click(function(){

        var ok=confirm("You really want to delete this property?");

        if(ok)
        {   
            $.ajax({
                type: "POST",
                url: "index-valid.php",
                data: prop_id=id,
                success: function(data) {

                    $('#deletebutton').closest('tr').hide();
                    alert("Successfully deleted.");
                }
            });
        }
    });
});
</code></pre>

<p>But the code doesn't delete my row; it only hides the row, and only works on the first row.</p>
