editable jquery on a table cell

editable jquery on a table cell

I am having a x-editable jquery for my table to edit its cell value at run time. It requires pk for primary key and i want to get value of first <td> and assign to pk to be sent through ajax, Can i have help on it please how can i do so?

<tr><td>5</td>
<td><span class= "xedit" id="5"><a href="javascript:void(0);">Yes</a></td>
</tr>


     t.$('td a').editable({
           url: 'update_inline.php',
           type: 'select', source: function() {return source;},
         

           pk: how to assign it?
    });