remove a table row and also pass a parameter to the function removing tr

remove a table row and also pass a parameter to the function removing tr

i wish to remove a table row on click i do know that it can be done using the following code

$('#myTable tr').click({
    $
(this).remove();
   
return false;
};
what if i also wanted to pass a certain value as a parameter to this function. 
basically what i wanna do is, i have a 'x' on each row so when a user clicks it
 i want the row to delete and at the same time wish to use ajax and delete that 
row from the database as well.